Closed beyondpie closed 2 years ago
This is not happened in your old modules
package. Also, I find it's easy for me load a script named foo_2-0.R like modules::import("foo_2-0"); while in box, when I use box(foo_2-0), it will treat it as foo_2 minus 0. How can I load script like "foo_2-0" in box?
I cannot reproduce this issue: debugging works just fine for me. Could you produce a step-by-step example to reproduce this?
when I use box(foo_2-0), it will treat it as foo_2 minus 0. How can I load script like "foo_2-0" in box?
As noted in the documentation, module names need to be valid R names. Non-syntactic names (such as foo_2-0
) need to be escaped, just like other R names. The following works (assuming this is a local module):
box::use(./`foo_2-0`)
Fundamentally, users are encouraged to choose valid R names for their module names — same as for packages.
I’m assuming this issue is resolved?
If not, please reopen with a minimal reproducible example.
Thanks! You can close it. Recently I just move back to your original package, and use it without troubles. I may test box later when I have time.
Hi, I really like the module concept you introduce in R. Previously, I use your
module
package, and seems everything is OK. When I use box, I notice that the weird behaviors while in debug mode:If I want to debug a function named boo in a R script name foo.R, which is import by
box::use(foo)
, and I usedebug(foo$boo)
.I can enter the debug mode, but seems when I hit some symbols, the console will be blocked, then I have to force to stop that, I can then continue to enter symbols, but it will be blocked soon.
when I want to quit the debug, I use
undebug(foo$boo)
. I will jump out, but when I hit some symbols, it will again show I am in debug mode.Not sure if you have the similar experience?
Thanks! Songpeng