We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
p <- r3dmol(id = "demo_sdf", elementId = "demo_sdf") %>% m_add_model(data = benz, format = "sdf") %>% m_set_style(style = m_style_stick()) %>% m_set_style(sel = m_sel(model = 0), style = m_style_stick(colorScheme = "cyanCarbon")) %>% m_zoom_to()
output$pic <- renderPlot({(p)}, res = 96)
I am using this R package for a new shiny app construction in my paper
I find when i render this picture, it only shows in the Rstudio Plot window instead of the web
How can i fix that problem?
Thank you so much !
Ps this was a great and very useful R package for me ! Thanks again for this amazing work !
The text was updated successfully, but these errors were encountered:
Actually, the output of r3dmol it's a web widget, so you can't export image natively. Also see #48.
If you want to add output of r3dmol into Shiny, you could use renderR3dmol https://github.com/swsoyee/r3dmol/blob/master/inst/example/app.R#L66 and r3dmolOutput https://github.com/swsoyee/r3dmol/blob/master/inst/example/app.R#L56. And add m_png() at the end of r3dmol object.
renderR3dmol
r3dmolOutput
m_png()
Sorry, something went wrong.
Thank you so much for your reply! It perfectly solved my problems!
I will cite your R package in my paper and recommend it for more researchers !
What a talented work !
No branches or pull requests
p <- r3dmol(id = "demo_sdf", elementId = "demo_sdf") %>%
m_add_model(data = benz, format = "sdf") %>%
m_set_style(style = m_style_stick()) %>%
m_set_style(sel = m_sel(model = 0),
style = m_style_stick(colorScheme = "cyanCarbon")) %>%
m_zoom_to()
output$pic <- renderPlot({(p)}, res = 96)
I am using this R package for a new shiny app construction in my paper
I find when i render this picture, it only shows in the Rstudio Plot window instead of the web
How can i fix that problem?
Thank you so much !
Ps
this was a great and very useful R package for me ! Thanks again for this amazing work !
The text was updated successfully, but these errors were encountered: