Hi
I have a problem for installing the "assurance" package. Do anyone else having the same issue? Do any one know how to fix this? Thank you!
Attached below is the code:
> install.packages("devtools")
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.3/devtools_2.4.5.tgz'
Content type 'application/x-gzip' length 430872 bytes (420 KB)
==================================================
downloaded 420 KB
The downloaded binary packages are in
/var/folders/69/s7mrlv1j0ls_ydvfz68fjp9w0000gn/T//Rtmp3WdqpY/downloaded_packages
> library(devtools)
Loading required package: usethis
> devtools::install_github("scientific-computing-solutions/assurance", build_vignettes = TRUE)
Downloading GitHub repo scientific-computing-solutions/assurance@HEAD
── R CMD build ───────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/69/s7mrlv1j0ls_ydvfz68fjp9w0000gn/T/Rtmp3WdqpY/remotes16dc127456c53/scientific-computing-solutions-assurance-912d7c0/DESCRIPTION’ ...
─ preparing ‘assurance’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ installing the package to build vignettes
-----------------------------------
─ installing *source* package ‘assurance’ ...
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX13.3.sdk’
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include `/Library/Frameworks/R.framework/Resources/bin/Rscript -e "Rcpp:::CxxFlags()"` -fPIC -falign-functions=64 -Wall -g -O2 -Wall -pedantic -fdiagnostics-color=always -c assurance.cc -o assurance.o
assurance.cc:2:10: fatal error: 'Rcpp.h' file not found
#include <Rcpp.h>
^~~~~~~~
1 error generated.
make: *** [assurance.o] Error 1
ERROR: compilation failed for package ‘assurance’
─ removing ‘/private/var/folders/69/s7mrlv1j0ls_ydvfz68fjp9w0000gn/T/RtmpFRnXCP/Rinst16e493be99ac0/assurance’
-----------------------------------
ERROR: package installation failed
Error: Failed to install 'assurance' from GitHub:
! System command 'R' failed