You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to repoint checkpoint to a file url ('file:///'), but it failed in two places: is.404 function and getValidSnapshots because both make use of readLines which doesn't work for file urls (when they are pointing to folders anyway). This code gives the error: cannot open file 'C:/Local/R/MRAN/': Permission denied:
options(warn=2) #treat warnings as errors since we don't expect any#Sets up the checkpoint package which ensures that we#get packages from a tested snapshot date i.e. different#users of the script all use exactly the same package versionsSetupCheckpoint<-function() {
message("Setting up checkpoint")
options(checkpoint.mranUrl="file:///C:/Local/R/MRAN/")
#Get packages as of the following, tested snapshot datelibrarySnapshot<-"2016-03-09"R.version<-"3.2.3"checkpointLocation<- file.path(Sys.getenv("USERPROFILE"), "R")
if(!dir.exists(file.path(checkpointLocation, ".checkpoint"))) {
dir.create(file.path(checkpointLocation, ".checkpoint"), recursive=TRUE)
}
checkpoint(librarySnapshot,
R.version=R.version,
checkpointLocation=checkpointLocation)
}
SetupCheckpoint()
The text was updated successfully, but these errors were encountered:
I tried to repoint checkpoint to a file url ('file:///'), but it failed in two places: is.404 function and getValidSnapshots because both make use of readLines which doesn't work for file urls (when they are pointing to folders anyway). This code gives the error: cannot open file 'C:/Local/R/MRAN/': Permission denied:
The text was updated successfully, but these errors were encountered: