Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for explicit export specifications and legacy modules #227

Merged
merged 5 commits into from
Aug 1, 2021

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
1 participant