Learn R Programming

packageRank (version 0.7.2)

logDate: Compute Effective CRAN Log Date Based on Local and UTC Time (prototype).

Description

RStudio CRAN Mirror Logs for previous day are posted at 17:00:00 UTC.

Usage

logDate(date = NULL, check.url = TRUE, repository = "CRAN",
  tz = Sys.timezone(), upload.time = "17:00", warning.msg = TRUE,
  fix.date = TRUE)

Value

An R date object.

Arguments

date

Character. Date of desired log "yyyy-mm-dd". NULL returns date of latest available log.

check.url

Logical.

repository

Character. "CRAN" or "MRAN". RStudio CRAN mirror log or Microsoft MRAN snapshot.

tz

Character. Time zone. See OlsonNames().

upload.time

Character. UTC upload time for logs "hh:mm" or "hh:mm:ss".

warning.msg

Logical. TRUE uses warning() if the function returns the date of the previous available log.

fix.date

Logical. Fix date when directly accessing RStudio logs.