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

View source: R/logDate.R

logDateR Documentation

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, tz = Sys.timezone(),
  upload.time = "17:00", warning.msg = TRUE, fix.date = TRUE)

Arguments

date

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

check.url

Logical.

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.

Value

An R date object.


packageRank documentation built on Nov. 10, 2023, 1:07 a.m.