When using the folder picker tk_choose.dir from the tcltk module in R, I get intermittent and unexpected line feeds in the console afterward. Whatever I try to get rid of it, nothing works but restarting R Studio.
Example:
library(tcltk)
FolderName <- tk_choose.dir("C:/")
Does anyone know what triggers this line feed and how to avoid it? Up until now the internet hasn't been really helpful.
R version 3.3.0 (2016-05-03)
RStudio 0.99.896
tcltk 3.3.0
Windows 7
Related
I have been using Rstudio for a while and there was no problem until I was trying to install rJava and xlsx package in R. I had updated both my RGui and Rstudio to the latest version (also downloaded java x64 bit for my desktop since earlier I had a Java_Home error message trying to install both rJava and xlsx package) and I was able to install both rJava and xlsx in Rstudio, but when I use
library(xlsx)
I encountered the R session aborted message. This happen every time even when I already closed the application and tried to open it again.
I'm currently using 2022.02.2 Build 485 for my Rstudio and 4.20.0 for my RGui. Anyone knows what I can do with this?
edit: I ended up using a different package to read my excel file (read_excel) for my data which worked very well. However, I still don't know what is the problem with my 'xlsx' package
This issue has been discussed in RStudio Community
https://community.rstudio.com/t/package-xlsx-error/136288
You should install a patched version
https://cran.r-project.org/bin/windows/base/rpatched.html
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
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 been using R & RStudio for around a year now. When trying to open RStudio, it would keep loading, or give me a blank RStudio page. I read the RStudio Desktop Would Not Start, and other helpers, and I think there was a connection issue with R, so I deleted both R & RStudio. I then downloaded RStudio again, the latest version, and downloaded R 3.3.3, because I'm using a Mac OS X Yosemite version 10.10.5 and therefore can't get R 3.4. Anyway, so, when I re-downloaded R, it would open, but my mouse would just keep spinning and it wouldn't work or it would instantly crash. I couldn't type anything or do anything.
Here is what it currently looks like. My mouse would also be spinning, and it would slow my entire computer down.
I tried removing files such as .Rprofile, .Renviron, and .RData, but that didn't work.
I also still can't open RStudio.
If I type Sys.which("R") in my Terminal I get this error:
-bash: syntax error near unexpected token `"R"'. "
Would anybody please, please be able to help? I really miss using R & RStudio and am out of ideas.
I am running R version 3.1.3 (2015-03-09) with RStudio 0.98.1103 under OS X 10.10.2 (Yosemite). I migrated to this machine recently and moved files and applications (R and profile files included) with OS X Migration assistant.
R has worked perfectly until I tried to install.packages(). The function initiates but it doesn't produce any printout or terminate. I tried different things:
I removed my .Rprofile file which indicates my package folder and restart R;
I tried different mirrors with install.packages('RMySQL', repos='http://cran.us.r-project.org');
I tried install.packages() both from shell and from R GUI;
I tried to upgrade all packages with RStudio.
I never encountered an error message of sort and none of the above worked or produced any result.