Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions minutely/update-crandb.r
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ do <- function() {

## Load packages
library(methods)
library(crandb)
library(pkgsearch)

## Set up config

root <- list(list(uri = "https://crandb.r-pkg.org:6984/cran",
priority = 10))
crandb:::couchdb_server(root, root = TRUE)
pkgsearch:::couchdb_server(root, root = TRUE)
options(repos = structure(c(CRAN = "https://cloud.r-project.org")))

## Do the update, and log it
data_dir <- "."
log_file <- file.path(data_dir, "update-crandb.log")
cat(format(Sys.time()), " updating... ", file = log_file, append = TRUE)
events <- crandb:::crandb_update()
events <- pkgsearch:::crandb_update()

cat("new: ", file = log_file, append = TRUE)
for (p in events$new) {
Expand Down