如何在ShareLatex针织品文件(.Rtex)中安装软件包??R码
par(mfrow=c(1,1))
install.packages("tree")
library(tree)
model.tree.simpel <- tree(response~.,data=dat)
plot(model.tree.simpel)
text(model.tree.simpel)错误消息
Installing package into '/usr/local/lib/R/site-library'## (as 'lib' is unspecified)##
Warning in install.packages("tree"):
'lib = "/usr/local/lib/R/site-library"' is notwritable##
Error in install.packages("tree"): unable to install packages##
Error in library(tree): there is no package called 'tree'##
Error in eval(expr, envir, enclos): could not find function "tree"##
Error in plot(model.tree.simpel): object 'model.tree.simpel' not found##
Error in text(model.tree.simpel): object 'model.tree.simpel' not found发布于 2015-05-27 22:02:38
似乎你不能安装软件包,但你可以上传它们。我在这里使用DPI包作为示例。看起来官方的sharelatex服务器运行在linux x86_64机器上。因此,您的包需要在这样的机器上编译(例如ubunut 64)。
~/R/x86_64-pc-linux-gnu-library/3.1/DPI)DPI文件夹DPI文件夹的内容上载到sharelatex DPI文件夹中DPI包使用library(DBI)https://stackoverflow.com/questions/28034656
复制相似问题