You may run into an issue while trying to install RcppTOML package for reticulate in Workbench.
The error you will see appears like this: ERROR: compilation failed for package ‘RcppTOML’
. This error indicates that there was an issue compiling the RcppTOML package, which is needed for reticulate. The RcppTOML package also imports the Rcpp package, which relies on having a working C++/g++ compiler on the system:
System Requirements: A C++11 compiler; g++ (>= 4.9.*) or newer works.
To solve this problem, you will need to make sure that you have a C++/g++ compiler that satisfies these requirements on the system. The simplest method to ensure this is to install and use the devtoolset
packages provided by RedHat/CentOS - see the example in the article below;
https://support.posit.co/hc/en-us/articles/360006145413-RStudio-Workbench-RStudio-Server-Pro-with-devtoolset-enabled
After installing the devtoolset
on the system, install reticulate.
install.packages("reticulate")
Once reticulate is installed, we recommend installing Python following the steps described at https://docs.posit.co/resources/install-python-source/
After that, the issue should be resolved.
For more information or questions, feel free to open a support ticket here
Comments