I have an R notebook that I am trying to make into a Jupyter notebook using IRkernel, which I downloaded via Anaconda.
Everything works fine except when I try to use dygraphs, which just won't display the graph.
The only thing close to an answer I could find online is: https://doc.dataiku.com/dss/latest/R/dygraphs.html but I am not able to download the dataiku library for some reason.
I tried using conda install -c r r-dygraphs but it has made no difference.
On the dygraphs website they don't mention anything about using it in a Jupyter notebook so I'm not sure what to do. If it isn't supported on Jupyter, can someone point me to a close alternative to dygraphs that will work on Jupyter? The time series visualisation is really great on it which is why I want to implement it in my Jupyter notebook.
Thanks in advance!
If your error is something like:
ERROR while rich displaying an object: Error in file(file, "rb"): invalid 'description' argument
Then I think it's referring to not being able to plot the dygraphs in Jupyter. I would suggest checking out the "using" section on the documentation for R dygraphs. Although it doesn't strictly mention using dygraphs in Jupyter notebooks, it gives pointers for using them in R Console, R Markdown, and R Shiny. Lately I've been using them in an R shiny application and they've worked flawlessly, just as long as you set them up correctly. Also, just use:
install.packages('dygraphs')
in Jupyter notebooks to ensure successful installation and use. I've noticed that there are inconsistencies when running conda install commands (i.e. whether or not the package will end up working in Jupyter notebooks, RStudio, or both).
I think the problem is not in the install dygraphs, but it depends on jupyter notebook, this one can't appear dynamic graphic such as in RMarkdown.
Related
I want to create a standalone app from my shiny app in R. My shiny app works correctly and I have followed the instructions in this link https://github.com/COVAIL/electron-quick-start/ I have been able to create the example app it is in the folder provided by COVAIL.
The problem comes when I try to install the required packages for my real app in shiny. I open the R-Portable.Mac/bin R executable and try to install the different packages I need (for example ggplot2). The thing is it appears the error message shown in the image
I tried installing rlang itself but it is not being installed. I have used .libPaths() to make sure the path is ok and it is. Can it be that the Portable-Mac-R is an old version and that is the reason why the packages are not being installed? I have also read that people were having issues with packages that required compilation.
As an example I could install dplyr but ggplot2 and shiny busy not.
Any ideas or suggestions?
Thank you in advance.
Edited: The output when I try to install ggplot2 (if I write no the land message won't appear but it is not installed)
and this is the whole output when trying to install rlang
I'm new in code. I need to use the "highfrequency" package but I can't. I tried several options that I found on internet but nothing worked for me.
I can download the package in Jupyter notebook but I cannot load it to use it ( please see below ).
Does anyone have had the same issue ?
I'm using Jupyter notebook with anaconda as IDE. I tried to use the highfrequency package into R studio and it worked, but I cannot use it in Jupyter.
Thank you for your help
Using Jupyter Notebook to do R in Windows 10. Although I much prefer RStudio, for reasons not worth getting into, I cannot use it. I moved a notebook I made on RStudio from my personal computer to my work computer and was not able to generate the same graphs inline on jupyter. I could save them fine onto the disk though.
Anyone know why it's not working? This is similar to
r graphs in jupyter - unable to start png() device
Displaying ggplot2 graphs from R in Jupyter
But not exactly. Anyone know why I am unable to get graphs to show? I discovered that if I restart the Rkernel I can get one graph to show but not more.
I am not quite sure why it was complaining but after looking at what other graphing packages suggest, I found that I needed to install pandoc and restart jupyter.
You can install pandoc from here: https://github.com/jgm/pandoc/releases/tag/1.16.0.2
I just downloaded anaconda and downloaded their basic R package.
I also got some packages from anaconda, using the anaconda terminal commands that they provide on their website.
My question is -- when I am starting a new R session in r studio, do I still need to install.packages()? Can I just load the package?
When I press libary(rJava) for example -- the R command line doesn't say anything back on whether it was successful, that's why I'm not sure. Thanks.
if you have installed the R packages via the R command line then you can just directly load them. I would recommend that you use the command line rather than R studio.
I am trying to draw graph by R on linux,
when I run this code: plot(1,1)
a graph with messy code is drawn
I am using OS linux, R 3.4.1 , jupyter notebook
Cairo is used as device for drawing.
I have tried these methods:
trying another method in R
trying another font
trying utf-8 encode
but these are not work.
It should not be problem of jupyter notebook because I run R console and draw the graph, the same problem happened. It should be problems in R, or Cairo, or something between them.
I have solved it by reinstalling R.
I had this same problem on a Linux machine where I used a conda installed R system running in Jupyter Notebooks. The issue for me turned out to be missing fonts. I solved it by using conda to install fonts:
conda install -c anaconda fonts-anaconda