Hi all,
I am having trouble installing my own package on my mac. In the package directory, there is a folder named /git_ignore that I put in the .Rbuildignore file. However, when I ran devtools::install(), I kept getting the following error message that it failed to copy the report.xlsx in the ignored folder. I also tried deleting the file within the folder but this error still keeps happening.
Any suggestions on how to fix this are appreciated.
Thank you,
Luke
devtools::check(, check_dir = dirname(getwd()))
── Building ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── MMMTools ──
Setting env vars:
● CFLAGS : -Wall -pedantic -fdiagnostics-color=always
● CXXFLAGS : -Wall -pedantic -fdiagnostics-color=always
● CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✓ checking for file ‘/Volumes/GoogleDrive/My Drive/MyPackage/DESCRIPTION’ ...
cp: MyPackage/git_ignore/_tasks/_results/report.xlsx: Operation not permitted
ERROR
copying to build directory failed
Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
System command 'R' failed, exit status: 1, stdout + stderr:
E> * checking for file ‘/Volumes/GoogleDrive/My Drive/MyPackage/DESCRIPTION’ ... OK
E> cp: MyPackage/git_ignore/_tasks/_results/report.xlsx: Operation not permitted
E> ERROR
E> copying to build directory failed
Type .Last.error.trace to see where the error occured
Restarting R session...