-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to install 'chocR' from GitHub on Mac #1
Comments
Hi, |
Hi again, |
Hi elfunesto, Thank you very much for your prompt reply. I found the installtation failed with error message via devtools::check() in chocR source package, the error message is as follows:
For MacOS system, there maybe "-lgfortran" and "-lquadmath" errors because of the use of Rcpp, RcppArmadillo. This website offers the solution: http://thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error/ Finally, the chocR package was installed successfully. But there was one ERROR via devtools::check_built() again. I've already installed package 'Rcpp'. the check.log is as follows:
the install.out is as follows:
This is current R session
Liuyong Thank you |
|
Thanks for the feedback. I added your installation recommendation in the readme. For the remaining bug, it seems that it was due to a problem with rcpp and rcpparmadillo with some version. I've just pushed a fix that should have solved this issue. Thanks for rhub, will have a look. |
Hi Irstea,
I encountered a bug installing the 'chocR' package on a Mac system. I guess it was due to a dependency on the package robustbase update. I'm looking forward to fixing the bug.
ERROR: package installation failed
Error: Failed to install 'chocR' from GitHub:
System command 'R' failed, exit status: 1, stdout + stderr (last 10 lines):
E> In file included from /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include/Rcpp.h:57:
E> /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include/Rcpp/DataFrame.h:136:18: warning: unused variable 'data' [-Wunused-variable]
E> SEXP data = Parent::get__();
E> ^
E> 15 warnings and 14 errors generated.
E> make: *** [RcppExports.o] Error 1
E> ERROR: compilation failed for package ‘chocR’
E> * removing ‘/private/var/folders/1x/5mjvgdgx0m754gnfv6_dyxqm0000gn/T/RtmphFtMIc/Rinste5ae19e1cbf2/chocR’
E> -----------------------------------
E> ERROR: package installation failed
The text was updated successfully, but these errors were encountered: