I'm new to R and recently I'm facing a weird problem.
When I open a new R session, everything works fine.. but after some time some commands stop working. when I execute that command:
getwd()
the output is just:
> getwd()
Instead of displaying my working directory it just displays the executed command.
After working with the session for a while, the output of variables also stops displaying. I have to close the entire Rstudio and open it anew to rectify this problem. This is wasting a lot of time.
How to come out of this??
Related
This issue suddenly happened without any obvious reason. R nor RStudio will execute any type of plot be it ggplot or a simple hist(). Nothing comes up in the plot viewer window and the console continually runs the code until I hit stop and the applications crash. This happens in R and RStudio.
I tried running ggplot code that had run perfectly fine previously. Now, whenever I go to plot it continually runs in the console and nothing shows up in the plot view. It will run until I hit stop and the application crashes. I thought it may be an RStudio issue so I removed it and reinstalled and nothing changed. I attempted to run simple plots (e.g. hist()) and the same issue. I then went to regular R and tried to run hist() and the same thing happened. I deleted and reinstalled both R and RStudio and still the issue persists.
Example code that will not execute a plot:
v <- c(9,13,21,8,36,22,12,41,31,33,19)
hist(v)
I am seeing a strange behavior with sink() in R, when used with ESS in Emacs.
If I sink output, by using
sink("file-name")
and I then feed lines to my R session from another buffer by using Ctrl-Enter, this seems to cause the current working directory to pop up in the sink destination file. In other words, it's as if, when I hit Ctrl-Enter, someone had executed getwd().
This seems to be new behavior, as I don't recall encountering this in the past. Any ideas how to stop this? Executing sink() with type="output" has no effect.
Rstudio keeps opening the same three files that I had opened before. Some strange things include:
Able to close the files just fine, but can't run any of the code. R just gets stuck.
Don't have any Files, plots, packages
Whenever closing or restarting R, it just gets stuck infinitely in the attached picture (I always have to force quit)
Whats stranger is I can start a New Session and all of a sudden everything works normally in the new session (e.g. files, packages is populated; can open/save/closeout and end the session) however the old session is still unusable and I have to force quit when I'm done.
I have a Jupyter Notebook that I have been working on for a while now to do some data cleanup for a project. I tried to open it again today and am getting a blank loading screen. I have restarted the server multiple times and have restarted my computer but have had no luck in getting it to load. Each time I try to open the notebook, my computer goes into overdrive, gets hot, fans start up, etc. I am working with a 2GB file in Pandas, so sometimes when running a data heavy command this happens, so I take it as normal.
Here is the screen and the output in my terminal. I haven't had this problem before and am wondering what my options are for saving my work. Any help is much appreciated!
I had the same problem . I solved it by deleting cookies and cache .
If the problem persists pls check this link
https://github.com/jupyter/notebook/issues/3857
I am using R 3.3.0 on Rstudio on Ubuntu 14.04 and have installed package Affy successfully.
However, when I set the directory where CEL files are, (using setwd()) and give the command cel1 <- ReadAffy(), there is no output. I don't even go the the next line with >. It simply does not show any output.
Also, Ctrl+C and Esc are also not stopping the process. Usually Esc works for stopping the process on my system. Here is the screenshot:
Also, when I try to quit the session, it takes too long to respond. What is causing this problem and how do I solve it?
EDIT:
I only have 3 CEL files in the folder.
EDIT #2:
I also applied it for single file, but takes again too much time. System monitor screenshot:
It is taking a lot of CPU and a lot of memory(in GB). What is causing the problem? I am using a simple command ReadAffy(filenames = "N54.CEL"). Why is that causing the problem? Any suggestion at all will be helpful. Kind of desperate here.
Turns out there was some problem with the file itself. I got the file from a different source, and it worked fine.