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

renderPlot in a rmarkdown: does not recognize mydata (loaded data.table) #86

MelissaLe44 opened this Issue Oct 18, 2017 · 3 comments


None yet
2 participants
Copy link

MelissaLe44 commented Oct 18, 2017

I try to include interactive plots in my rmarkdown.
My dataset (mydata) comes from a .rdata that I load into a r chunk global
In another r chunk, I got my selectinput and my renderPlot that is based on plotting a subset of mydata depending on selectinput.
It does not work because it does not recognize mydata. However if instead I use renderPrint to compute the length of subset of mydata, this works! so it seems it is only a problem with renderPlot!! Using ggplot, I specify environnment=environnment() but this is not working!!
Any advice?



This comment has been minimized.

Copy link

yihui commented Oct 18, 2017

You seem to have filed the issue to a wrong repo:

You probably meant shiny:

@yihui yihui closed this Oct 18, 2017


This comment has been minimized.

Copy link

MelissaLe44 commented Oct 19, 2017

I still think it should be in rmarkdown, because a shiny app works with loading a dataset, this is really an issue that I have only while embedding shiny within rmarkdown. I will also put it in Shiny.


This comment has been minimized.

Copy link

yihui commented Oct 19, 2017

This is the markdown repo instead of rmarkdown.

Anyway, please always provide a minimal, self-contained, and reproducible example when reporting an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.