I am using the box package. In my project, I have a functions folder, with two functions saved in there: hello.r and goodbye.r
I can load them using the box package using:
box::use(functions/hello)
box::use(functions/goodbye)
The problem is that I potentially have dozens of .r files in the functions folder (one .r file for each function).
Is there a way of loading all the .r files in one go (whilst still using the box package) without having to repeat the box::use function many times?
Since
box::use
uses Non-Standard Evaluation (NSE) you have to transform strings into unevaluated language objects:Update based on Friede's tip to use
str2lang