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

Using global environment to pass variables between code chunks #715

Open
ethelpruss opened this issue Jul 31, 2022 · 1 comment
Open

Using global environment to pass variables between code chunks #715

ethelpruss opened this issue Jul 31, 2022 · 1 comment

Comments

@ethelpruss
Copy link

As I understand the code chunks being independent is a policy decision, however, for our application (student use during live statistics lectures) it is very limiting as we want students to see the results of their own code between different exercises not what we have hard-coded (which is what the setup chunks / chaines setup chunks currently allow for) and the exercises are complex enough that several different approaches with different output should be possible.

We did find a workaround to save variables in a global environment in local files using a checker function but this seems to not work once uploaded on shiny.io. In a previous thread about this it was mentioned that allowing passing variables between code chunks would not be technically difficult - would it then be possible to let me know how I can maybe modify / overwrite that bit of the learnr package's code for our project if there is still no interest in making this a generally available option?

@beachemu
Copy link

Any update on this? Have a very hacky solution that I would prefer not to use....

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

No branches or pull requests

2 participants