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

Possible issue in detach.packages() when trying to detach a package which is depended on by a loaded package #5

Open
colinpmillar opened this issue Jul 5, 2022 · 1 comment
Assignees

Comments

@colinpmillar
Copy link
Member

sapply(paste0("package:",pkgs), detach, character.only=TRUE)

@arni-magnusson
Copy link
Member

The 'detach' argument in source.taf(), defaulting to FALSE is something I haven't used or tested much. It looks we added that feature back in April 2020, so it probably seemed like a good idea at the time :)

Happy to look at a reproducible example and/or talk about possible improvements. Currently, I don't have test cases where detach=TRUE can be helpful or harmful.

My guess is that few people run source.taf() with detach=TRUE, but I notice that taf=TRUE enables detach=TRUE. Does that mean that the TAF server runs all analyses with detach=TRUE?

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

3 participants