Welcome to the Alteryx Knowledge Base
Unable to load the Rcpp package
Created/Edited -
Unable to load the Rcpp package
When using the Predictive tools, you may get an error stating that the Rcpp package cannot be loaded, or that the namespace load failed.
Unable to load the Rcpp package - Use the R installer provided by Alteryx
Environment
- Product - Alteryx Designer Predictive Tools
Cause
User-installed packages may have overwritten Alteryx's default Rcpp package or a mismatch between Designer and Predictive Tools version may have caused the Rcpp version to become out of sync with Designer. Other causes are possible as well.
Solution
- Make a backup and delete the existing Rcpp package from the folder corresponding to your Designer version (Admin or non-Admin):
- Non-Admin:%LOCALAPPDATA%\Alteryx\R-{VERSION}\library\Rcpp
- Admin: C:\Program Files\Alteryx\R-{VERSION}\library\Rcpp
- Run the R terminal as Administrator:
- Non-Admin:%LOCALAPPDATA%\Alteryx\R-{VERSION}\bin\x64\Rterm.exe
- Admin: C:\Program Files\Alteryx\R-{VERSION}\bin\x64\Rterm.exe
- Re-install the Rcpp package with the following command:
- install.packages("Rcpp", type="binary")
- Restart Designer and test the sample predictive workflows found under Help -> Sample Workflows
- If you continue to experience issues, open the R terminal again and run the command below. Provide any error message to Support to further troubleshoot.
- library(Rcpp)
Was this article helpful?