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

Dygraphs in loop in RMarkdown #64

Open
gunjanthesystem opened this issue Jun 29, 2015 · 4 comments
Open

Dygraphs in loop in RMarkdown #64

gunjanthesystem opened this issue Jun 29, 2015 · 4 comments

Comments

@gunjanthesystem
Copy link

Hi,

I am not able to produce dygraphs in for loop inside RMarkdown document, seems like an issue
(Similar: http://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r/31117554#31117554)

Kindly look into it and thanks for this package.

@jjallaire
Copy link
Member

Yes, this is a limitation of htmlwidgets (upon which dygraphs is based). We
have a PR in htmlwidgets pending that should address this issue:
ramnathv/htmlwidgets#110

On Mon, Jun 29, 2015 at 4:16 PM, gunjanthesystem notifications@github.com
wrote:

Hi,

I am not able to produce dygraphs in for loop inside RMarkdown document,
seems like an issue
(Similar:
http://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r/31117554#31117554)

Kindly look into it and thanks for this package.


Reply to this email directly or view it on GitHub
#64.

@DrNickBailey
Copy link

Is this the same reason that zero plots are displayed when I "Source" some linear code in which there are a number of Dygraph plots created?

@jjallaire
Copy link
Member

You need source with echo = TRUE in order for the dygraphs to be printed
during the source.

On Mon, Jun 29, 2015 at 10:43 AM, JJ Allaire jj.allaire@gmail.com wrote:

Yes, this is a limitation of htmlwidgets (upon which dygraphs is based).
We have a PR in htmlwidgets pending that should address this issue:
ramnathv/htmlwidgets#110

On Mon, Jun 29, 2015 at 4:16 PM, gunjanthesystem <notifications@github.com

wrote:

Hi,

I am not able to produce dygraphs in for loop inside RMarkdown document,
seems like an issue
(Similar:
http://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r/31117554#31117554)

Kindly look into it and thanks for this package.


Reply to this email directly or view it on GitHub
#64.

@yihui
Copy link
Member

yihui commented Feb 5, 2016

I have posted an answer to your question on SO: http://stackoverflow.com/a/35235069/559676

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

4 participants