Я установил каретку, указав в установке, что я также хотел установить все зависимости.После этого у меня все еще остаются проблемы с вызовом 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’