I am using R Studio 1.0.44 and R 3.3.3 in Ubuntu 16.04. Tried to execute a simple plot but it is showing the following message:
Error: API graphic version incompatible
I installed the devtools XML2 and RVG but it still not working.
You'll need to update to RStudio v1.0.153 or later to resolve this.
Related
I'm really stuck and need some help.
After installing R 3.5.1, I'm getting this error message on R visualizations in Power BI Desktop which were previously working
"Error: package or namespace load failed for 'ggplot2': package
'scales' was installed by an R version with different internals; it
needs to be reinstalled for use with this R version."
I already tried to:
reinstall R 3.5.1
reinstall RStudio
reinstall ggplot2 and scales package
reinstall all packages
reinstall Power BI Desktop
Still it does not work.
Considerations:
My visualizations were working well before I installed R 3.5.1
My visualizations are working well on other PCs
When I run the code on RStudio I don't get any error
Any thoughts?
I would try running this inside your visual:
.libPath()
library(ggplot2)
It will give you an error message but there should be the output of .libPath() as well, looking like:
[1] "C:/Users/.../Documents/R/win-library/3.4"
[2] "C:/Program Files/R/R-3.4.3/library"
and then I would try to install (or copy an existing folder) ggplot into one of those directories.
I have previously used ggplot2, in fact I was using the package as this problem arose.
I updated all of my packages, and found that I could no longer access basic packages (ggplot2, tidyvers, dplyr ect). When I try to install packages via install.packages("ggplot2"), I receive the error message attached below.
I then proceed to use the library with library(ggplot2), and the error message, "there is no package called ‘ggplot2’" is deployed. I am using R version 3.5.1 and R studio 1.1.423. I am using Mac version 10.12.6 (macOS Sierra), using an outdated version for other reasons. I am writing my current code in RStudio. Can anyone decipher what is going on with my code?
Error message seen when command line tools were updated
Error Message 2
HI I installed R with brew install R and then R studio from the deb file.
When I enter R through ubuntu (16.04) terminal and type plot(cars) I get a popup with a plot.
When I enter R through r studio and type plot(cars) I get an error.
By the way I have zlib and gtk+ installed via brew so I'm not sure what's going on.
Your guys help would sure be appreciated.
plot(cars)
Error in RStudioGD() :
Shadow graphics device error: r error 4 (R code execution error)
In addition: Warning message:
In grDevices:::png("/tmp/Rtmpsjmflh/c9345ef70b9a4dc9a1f9f5579bfaada6.png", :
unable to load shared object '/home/tha/.linuxbrew/Cellar/r/3.4.3_2/lib/R/modules//R_X11.so':
/lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /home/tha/.linuxbrew/lib/libpng16.so.16)
HI I installed R with brew install R
That is not the best idea given that you are on Ubuntu. We have properly maintained and current R binaries for you here at CRAN. When you use that, 'it all just works'.
Even if you don't use the CRAN apt repo, using the R version that is part of your Ubuntu release will work, albeit possibly an older version.
I am trying to use the Isolation Forest package in R to run some code. I had RStudio 3.3.1 but I kept getting an error "package ‘IsolationForest’ is not available"! Looking at the description file it says it depends on R >= 2.0.0, so I got RStudio 2.15.2, instead. However, I get the same problem again. Can someone help me with this situation? I am using Windows 7 for RStudio 2.15.2
I have made a shiny app which works fine on windows, but when I tried running the same on my ubuntu system the app exists abruptly and I get following error
Loading required package: TTR
Version 0.4-0 included new data defaults. See ?getSymbols.
Error in library(rstudio) : there is no package called ‘rstudio’
After this I tried installing the 'rstudio' package and I am getting the following message:
Warning in install.packages :
package ‘rstudio’ is not available (for R version 3.2.1)
My R version is: 3.2.1 and my RStudio version is: 0.99.467
Note: I am new to ubuntu and the only reason I shifted to ubuntu, was to to use shiny-server.
The rstudio package comes with the installation of RStudio (Desktop or Server). If you need to use the rstudio package, you probably need to install RStudio (Dekstop or Server version).
You can do that from here:
https://www.rstudio.com/products/rstudio/download-server/
That said, I'm not clear on why you would need to load the rstudio package.
That is because there is no package called rstudio (at least not on CRAN anyways). Either there is a typo and you really meant the rstudioapi package, or on your windows system you actually did install a package named rstudio that, however, was distributed from another source other than CRAN. I'd suggest try removing the line library(rstudio) and see if it works.