Console keeps popping up after running a code in R - r

so, after I run a line(s) of codes in Rstudio, the console always pops up showing the script again. I have tried running Source and Ctrl+Shift+S, but the same thing still happens.
Any idea how to fix it?
Thank you for any help! Cheers!

Related

Unable to start device (svg)

I am getting following Knitting error.
I understand that it is related with my chunk, however I am unable to fix it. Any help would be highly appreciated.
I encountered the same error. restarting RStudio solved it. It seems that it tries to find some temp files which are not available anymore.

Why do I get error messages when trying to save or exit from Rstudio?

I deal with a problem in R Studio. When I choose to save my work, this message shows up
And if I try to close the program, this message shows up
Any ideas why this happens? Also, I would like to ask if it is better to use the latest version of R (R4.0.2)?
Thank you for your answers. The problem was that I had open an R script file which I had deleted before. When I remove this script, Rstudio works fine.

vphython stops to work for me in jupyter notebooks every few minutes for no reason

I am having massive trouble with using vpython in jupyter notbooks. I'm creating small animations with vpython. After a couple of minutes when I try to run a cell, it will either not show any output or will yield a error message "object could not be called".
The only fix I found for this is to restart or change the kernel. Most times it works then for the next few minutes until it stops again. This is really annoying and prevents real progress.
pictrue of error message with example code
all used objects have been imported in another cell before this one.
I am running vpython 7.3.2 and anaconda navigator 1.6.10 on a mac with High Sierra. As a browser I use Chrome.
Thank u for every hint to fix this permanently in advance!
Cheers,
Gordon
Try asking your question on the vpython forum and perhaps provide a sample notebook on github where with instructions on how to reproduce the problem.
https://groups.google.com/forum/?fromgroups&hl=en#!forum/vpython-users
Here is a link to demo vpython notebooks running in the cloud using binder service.
https://mybinder.org/v2/gh/BruceSherwood/vpython-jupyter/master?filepath=Demos
If you provide a notebook on github that demonstrates the problem then it should be reproduceable when running on mybinder.
https://mybinder.org/

Rtools not working in command prompt

First off, I'm unfortunately a windows user. So downloading Rtools and being able to use it from the command prompt is a bit of a pain. However, I figured it out. And everything worked fine. Just recently, however, I have not been able to run R from the command prompt using the R command. This did work at one point. However, now when I execute the command R in the command prompt R opens but when I type some R code (q(), matrix(1:4,2,2), etc...) and hit enter nothing happens. This is very bizarre. Has anyone else experienced this? Does anyone know what is wrong?
One last thing. I have tested the following R CMDs, INSTALL, SHLIB, build, check. They all work fine.
Thanks in advance!

Why does RStudio not give output?

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??

Resources