How to nicely use box::use
in a formal R
package
#378
Unanswered
dereckmezquita
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m currently developing an R package and I’m keen on utilising the box package for modular imports. However, I’m encountering some issues and would very much appreciate guidance.
I am writing a formal
R
package that I want to be able to build and install. However during the developement process I find building it to be extremely annoying - I would very much rather like to usebox::use
imports from my test scripts and test my code that way.I find myself putting
box::use
import statements at the top of my modules in the ./R folder and then during a build having to comment them out.Is there anything you can recommend and I could do to avoid having to comment in and out everytime?
I am imagining something like:
./R/some_code.R
Thus, being able to build my package and use
box
as well.Beta Was this translation helpful? Give feedback.
All reactions