This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I am using Alteryx 2018.2. I already installed the caret package in the appropriate library. However, when I run the my workflow and try to load the caret package using the R tool, I obtain the following message:
Error: R (27): Error: package or namespace load failed for 'caret' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
I am able to load other packages, does anyone know what the issue might be?
Note: it is important for you to specify a repository when installing packages as the popup which appears asking you to specify the mirror in most R GUI's will not appear when using the Alteryx R Tool.
Hopefully, you have now received an answer to your question.
By default (aka if parameter lib is unspecified), install.packages() tries to install new packages under current R directory (so C:\Program Files\R-3.4.4/library in your case). As you are probably not running Alteryx Designer as Administrator, it fails as it can't create files and folders.