Konrad Rudolph

Results 102 comments of Konrad Rudolph

ā€˜renvā€™ gets away with this for `install.packages` etc. ā€” It doesnā€™t do this inside `.onLoad` but instead inside `renv::init` but that shouldnā€™t matter. This makes me more confident that CRAN...

I have to admit that I donā€™t entirely follow what youā€™re trying to do. I guess ultimately you want to know which packages/modules are loaded by ā€˜boxā€™, right? Thereā€™s currently...

> Am I correct in understanding that the returned mod_spec object doesn't show what packages are loaded by a given mod? Thatā€™s correct, yes. The return value is an S3...

# Suggested API Module hooks are declared as special function names inside the module itself, analogously to R package [hooks for namespace events](https://stat.ethz.ch/R-manual/R-devel/library/base/html/ns-hooks.html). The special names shall start with `.`...

> Is there any reason to allow double definitions at all? Two reasons: 1. It reflects Rā€™s builtin semantics: all symbols can be overwritten/shadowed anywhere. 2. Being the natural semantics,...

Ah. No, the stuff in `[ā€¦]` is the *attach specification*, not the import specification. It controls what names are attached to the calling environment (or, equivalently, exported directly).

Hmm. Apparently the answer is no: byte-compilation is not only not always faster, it can in some cases be _slower_. Iā€™m still working out when exactly thatā€™s the case butĀ ...

Now that [package byte-compilation is default with R 3.5.0](https://cran.rstudio.com/doc/manuals/r-release/NEWS.html), this decision should be revisited.

How should this be compartmentalised? Should this be a core part of ā€œmodulesā€? Iā€™m somewhat in favour of keeping it as a separate project. If so, would it be an...

Itā€™s not solved already (none of this code is written yet) but I intended to implement this, yes.