Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@klmr
Copy link
Owner

@klmr klmr commented Aug 1, 2021

Add the box::export function which can be used instead of (not in addition to!) @export tags. This function can also be used to declare that a module has no exports.

The semantics of exporting were changed such that modules without any exports are now treated as legacy R script modules, and all visible names are exported by default. To retain the old functionality of exporting o names, box::export() can be added to such modules.

This improves support for legacy R scripts, and thus fixes #207.

@klmr klmr merged commit 7dcd735 into main Aug 1, 2021
@klmr klmr deleted the feature/legacy-modules branch August 1, 2021 22:06
radbasa pushed a commit to Appsilon/box that referenced this pull request Jul 1, 2024
…mr#227)

* Add test case for legacy modules feature
* Add test case for explicit exports
* Add `export` function
* Add documentation of `export` functionality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to import all functions from a script without @export decorator

2 participants