2
## loading code which is first sent to R on remote sessions
6
## VS: Should be fine (who is using win remote anyways?)
7
.c.dir <- '~/.config/ESSR'
8
verfile <- file.path(.c.dir, 'VERSION')
9
envfile <- file.path(.c.dir, 'ESSR.rda')
10
ver <- if(file.exists(verfile)) scan(verfile, what = "string") else "0.0"
13
url <- paste('http://vitalie.spinu.info/ESSR/ESSR_', curver, '.rda', sep = '')
14
if(!file.exists(.c.dir))
15
dir.create(.c.dir, recursive = TRUE)
16
utils::download.file(url, envfile)
17
cat(curver, file = verfile)
22
} , error = function(e) print(FALSE))