jacobbien / litr-project

Writing R Packages with Literate Programming

Home Page:https://jacobbien.github.io/litr-project/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

overriding usethis behavior

jacobbien opened this issue · comments

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: