Checkpoint命令位于脚本的顶部。它旨在标识脚本中列出的所有库–保存在工作区中。然后,它将在指定的日期从快照中获取软件包并进行安装。但是,跨多个包会生成多个错误。由于这些软件包已经安装在个人库文件夹中,因此似乎与我的系统不存在兼容性问题;尤其是因为该错误会影响多个软件包。
注意:R检查点软件包的stackoverflow上没有标记。
#Checkpoint code
library(checkpoint)
checkpoint("2019-04-01")
#Dummy script
library(magrittr)
library(officer)
library(expss)
library(tm)
require("ggplot2")
library(ggrepel)
library(tm)
library(SnowballC)
library(wordcloud)
library(RColorBrewer)
library(anesrake)
#Errors
[5] WARNING: Warning: package 'checkpoint' was built under R version
3.5.3
checkpoint: Part of the Reproducible R Toolkit from Microsoft
https://mran.microsoft.com/documents/rro/reproducibility/
[6] ERROR:
arguments imply differing number of rows
[7] NOTE: Script saved to to ##REDACTED
[8] ERROR:
arguments imply differing number of rows
[9] WARNING: Warning: package 'magrittr' was built under R version 3.5.3
[10] ERROR: package or namespace load failed for 'officer' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
[11] WARNING: Warning: package 'expss' was built under R version 3.5.3
Use 'expss_output_rnotebook()' to display tables inside R Notebooks.
To return to the console output, use 'expss_output_default()'.
[12] ERROR: package 'NLP' required by 'tm' could not be found
[13] WARNING: Loading required package: ggplot2
Warning: package 'ggplot2' was built under R version 3.5.3
Attaching package: 'ggplot2'
The following object is masked from 'package:expss':
vars
[14] WARNING: Warning: package 'ggrepel' was built under R version 3.5.3
[15] ERROR: package 'NLP' required by 'tm' could not be found
[16] WARNING: Warning: package 'wordcloud' was built under R version 3.5.3
Loading required package: RColorBrewer
[17] ERROR: package 'Hmisc' could not be loaded