I am practicing R package writing with Rcpp, devtools, and roxygen2. However, when I run document("mypkg") under the dev mode, I got the following error:
Updating mypkg documentation
Loading mypkg
Error: file already exists: 'mypkg/src/RcppExports.cpp'
My RcppExports.cpp file is very similar to the default Rcpp.package.skeleton.
What could possibly go wrong here?
I understand I probably should provide more relevant info, but I don't really have a clue. I would be happy to put more here if anyone has any suggestion.
Best Regards,