Skip to content
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

devtools::load_all( ..., recompile=F) often still recompiles, and breaks existing library. #2513

Closed
cdriveraus opened this issue May 11, 2023 · 3 comments

Comments

@cdriveraus
Copy link

cdriveraus commented May 11, 2023

When I am working on the ctsem package (https://github.com/cdriveraus/ctsem ), even though I set recompile to FALSE, (which I realise shouldn't make a difference as it is the default), I get:

Re-compiling ctsem (debug build)

What are the reasons for this to happen, can I avoid it? Under this 'debug build' the package fails to compile, then I have to restart and reinstall the package using the regular 'full' build procedure -- the load_all broke my existing library in some way.

There are some complexities to the package because it uses rstantools to write c++ during package install -- but there is no need to recompile, and using the regular rstudio build process it only recompiles when the c++ is actually changed between installs.

@jennybc
Copy link
Member

jennybc commented May 11, 2023

I'm not working on devtools right now. But one thing it would be helpful to share here is a link to the package, if it's on GitHub or similar.

@jennybc
Copy link
Member

jennybc commented Nov 2, 2023

This thread seems to have gone stale.

In case it helps, devtools::load_all() is an extremely thin wrapper around pkgload::load_all(), so if you care to resume this, I recommend opening an issue in the pkgload repo.

@jennybc jennybc closed this as completed Nov 2, 2023
@cdriveraus
Copy link
Author

some relevant discussion here in case anyone stumbles this way:
r-lib/pkgbuild#154 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants