Closed JosephBARBIERDARNAL closed 2 months ago
Ok, I understand the problem and have found a solution.
When there's a src/
, devtools::load_all()
tries to compile the code because it's not common to distribute binary files (and not even allowed for CRAN packages).
For some reason, on Mac, devtools will just throw a warning saying it can't find the source files, whereas on Windows it will throw an error (see above).
The solution is not to call this directory src/
so that it doesn't try to recompile it.
It still weird why it just raises a warning on Mac and an error on Windows
an even better workaround would be to just use devtools::load_all(compile = FALSE)
When trying to load pkg in development mode on the HP windows with
devtools::load_all()
, I run into:I was able to reproduce the error on a VM on my Mac with pretty much the same set up.