我安装了插入符号,并在安装中指定了我也想安装所有依赖项。完成此操作后,我仍然遇到调用dummyVars()
的问题,因为我需要安装recipes
。我发现这个依赖项尚未安装很奇怪。我尝试显式安装recipes
,但收到错误消息。我很难解码错误消息。我不知道为什么这与我的库的安装位置有什么关系,我也不认为存储库有问题。
> install.packages("recipes")
Installing package into ‘\\xxxxxxx/FolderRedirection/xxxxxxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
recipes 0.1.6 0.1.7 FALSE
installing the source package ‘recipes’
trying URL 'https://cran.rstudio.com/src/contrib/recipes_0.1.7.tar.gz'
Content type 'application/x-gzip' length 989183 bytes (965 KB)
downloaded 965 KB
* installing *source* package 'recipes' ...
** package 'recipes' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in findpack(package, lib.loc) :
there is no package called 'recipes'
Calls: <Anonymous> -> findpack
Execution halted
ERROR: lazy loading failed for package 'recipes'
* removing '\\xxxxxxx/FolderRedirection/xxxxxxx/Documents/R/win-library/3.6/recipes'
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\xxxxxxx\AppData\Local\Temp\RtmpCACRGQ\downloaded_packages’
> dummies <- caret::dummyVars(~ loan_type, data = df)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘recipes’