我对R来说是全新的,所以这可能是一个简单的修复。我试图安装我公司的软件包,但是我收到了以下错误。
> devtools::install_bitbucket("owac/owactools", auth_user =
"username", password = "password")
Downloading bitbucket repo owac/owactools@master
Installing owactools
"C:/Users/SPENCE~1/DOCUME~1/R/R-33~1.0/bin/x64/R" --no-site-file
--no-environ --no-save --no-restore --quiet CMD \
INSTALL "C:/Users/spencer-miller/AppData/Local/Temp/RtmpsXEvW5
/devtools1ca063f850e1/owac-owactools-d9441106847e" \
--library="C:/Users/spencer-miller/Documents/R/R-3.3.0/library"
--install-tests
* installing *source* package 'owactools' ...
** R
** data
*** moving datasets to lazyload DB
** tests
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =
vI[[i]]) :
there is no package called 'ggplot2'
ERROR: lazy loading failed for package 'owactools'
* removing 'C:/Users/spencer-miller/Documents/R/R-3.3.0/library
/owactools'
Error: Command failed (1)
答案 0 :(得分:0)
您必须通过以下方式下载 ggplot2 包
install.packages(c("ggplot2"))
错误消息
没有名为'ggplot2'的包
表示这一点。