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

overriding usethis behavior #49

Open
jacobbien opened this issue Jun 17, 2023 · 0 comments
Open

overriding usethis behavior #49

jacobbien opened this issue Jun 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jacobbien
Copy link
Owner

Currently, litr redefines usethis's challenge_nested_project() function as follows:

utils::assignInNamespace("challenge_nested_project", function(...) NULL, ns = "usethis")

However, in version 2.2.0 of usethis, they added functionality to allow one to have a package nested inside a project. They now have an undocumented environment variable to do this. It would be nicer to use this new approach rather than using the utils::assignInNamespace() approach.

To read more about the new approach, see here:

@jacobbien jacobbien added the enhancement New feature or request label Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant