box 1.1.0
Breaking changes
- Modules without any
@export
declarations now export all visible names (= names not starting with a dot); to obtain the previous semantics of a module without exports, add a call tobox::export()
to the module source code. box::set_script_path
now returns the full path previously set, as documented, not just its parent directory’s path. Existing code that relies on this function’s previously incorrect behaviour will need to be updated.
General
- Fix: work around broken
isRunning
function in Shiny ≥1.6.0 (#237) - Fix: Return the full path from
box::set_script_path
, not just the parent directory’s path;box::script_path
now also returns that path without requiring the user to set a new path (#239) - Enhancement: More descriptive error messages when calling
box::unload
orbox::reload
with an invalid argument (#232) - Enhancement: More descriptive error messages when a module cannot be found or when there’s a syntactic error in a
box::use
declaration - Fix: Better detection of whether code is called from inside RStudio (#225)
- Fix: Work around R bug in path handling on non-Windows platforms when paths passed to the R binary contain spaces
- Enhancement: Support legacy modules (aka. R scripts) better by exporting all visible names (#207)
- Enhancement: Permit specifying exports via a function call instead of via
@export
declarations (#227) - Fix: Make interactive HTML module help work on Windows (#223)
- Fix: Prevent segfault in R ≤ 3.6.1 caused by missing declaration of internal R symbol (#213)
- Fix: Allow exporting modules that were previously imported using a different prefix (#211)
- Enhancement: Add standard module for core R packages (#200)
- Enhancement: Warn when legacy functions are imported inside modules (#206)
- Fix: Reload dependent modules (#39, #165, #195)
- Enhancement: Support empty modules
- Fix: Don’t crash in the presence of nested, expanded functions inside modules (#203)
This version corresponds to version 1.1.0 on CRAN.