代码拉取完成,页面将自动刷新
#Template config.R
# If the author uses R, use this template, copy it to config.R and
# include in the authors' program(s) with
# source("config.R", echo=TRUE)
####################################
# global libraries used everywhere #
####################################
mran.date <- "2019-09-01"
options(repos=paste0("https://cran.microsoft.com/snapshot/",mran.date,"/"))
pkgTest <- function(x)
{
if (!require(x,character.only = TRUE))
{
install.packages(x,dep=TRUE)
if(!require(x,character.only = TRUE)) stop("Package not found")
}
return("OK")
}
## Add any libraries to this line, and uncomment it.
global.libraries <- c("foreign","devtools","rprojroot")
results <- sapply(as.list(global.libraries), pkgTest)
# check if the author creates a log file. If not, adjust the following code fragment
# the easiest way is from the command line:
# R --vanilla < program.R > program.log
# keep this line in the config file
print(sessionInfo())
print(paste0("MRAN date was set to: ",mran.date))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。