Anirban166 / Autocomment-atime-results

GitHub Action that automatically comments a plot and other atime-based results on PRs
https://github.com/marketplace/actions/autocomment-atime-results
0 stars 1 forks source link

Specification of a CRAN mirror becomes a necessity for older version of data.table #25

Closed Anirban166 closed 7 months ago

Anirban166 commented 7 months ago

1This error pops up for install.packages while running my workflow on an older version (tested on 3fa8b20) of data.table: (for reference, this is the run where I first encountered it)

> install.packages("atime", dependencies = TRUE)
Installing package into ‘/__w/_temp/Library’
(as ‘lib’ is unspecified)
Error in contrib.url(repos, type) : 
  trying to use CRAN without setting a mirror
Calls: install.packages -> startsWith -> contrib.url
Execution halted
Error: Process completed with exit code 1.

Had to specify a default CRAN mirror, or for all packages in general: (as that pops up again when just specifying for data.table)

r = getOption("repos"); r["CRAN"] = "http://cran.us.r-project.org"; options(repos = r); install.packages("atime", dependencies = TRUE); atime::atime_pkg(Sys.getenv("GITHUB_WORKSPACE"))

That1 doesn't happen for the latest version of data.table. (where the first three commands in the above line are redundant)