Why is r sourcing my script when i want to save it? - r

first time asking things here. Appreciate this community. I got a problem. If I want to save my script in RStudio either with the shortcut ctrl+s or if i click the icon on the top it only sources my active script. I even changed the shortcuts, but it didnt change anything. Is there anything i'm missing. Is this a known bug? Anyone can help me, i love the saving shortcut strg+s, thanks!

Related

Disappearance of all cell outputs of a jupyter notebook in Google Colab

I have a big problem. All cell outputs my Jupyter notebook in Google Colab are deleted. I do not know why, if I accidentally pressed "Restart and run all" or something similar.
Is there any way to restore the state of the notebook from this disappearance of the cell outputs?
Can someone help me? Many thanks for any help
Check the revision history using the File -> Revision history menu.
Slightly old, but adding an answer here anyway. If it doesn't appear in the revision history there you can refresh the page at which the notebooks are present, and the output should reappear even if you had previously cleared it.

It is possible to disable the search/ help function for a document in Rstudio?

For instance if someone send me a document and I open it in Rstudio is it then possible to disable the search/ help function for a document in Rstudio. i.e. so I can't get help in Rstudio when I solve exrcises? I hope my question make sense! Thanks in advance!
you can go to the RStudio menu-> Preferences -> Pane Layout
Then uncheck "Help" under Files, Plots, Packages, Help, Viewer. Click the Apply button, then OK. I am on a Mac, but I'm sure Rstudio in windows is similar.

Atom: Unstaged Changes Pop Up

I'm using the Atom IDE, and an "Unstaged Changes" tab pops up each time I switch to an other tab (see image below).
I know what unstaged changes are, I just don't know how to keep the window from popping up all the time. I've turned off all the packages that contain the word "git", but that didn't solve the isse. Any help would be appreciated!
Atom Unstaged Changes Tab
I uninstalled Atom, and reinstalled it. That solved the problem. I was hoping to not have to uninstall, but it was really making me crazy to work with the constant pop-ups.
Thanks for all the comments! It seems like it wasn't a problem with the .git file in the project folder (since that wouldn't be effected by reinstalling Atom)

RStudio keyboard shortcuts of Command+Enter and Option+Enter cannot work

My RStudio keyboard shortcuts of Command+Enter and Option+Enter cannot work, after upgrading RStudio Version 1.0.136 on my Mac BookPro notebook. Any one can help me? Many thanks.
Best,
Gary
You can try to rebind them to something different as a semi-solution. However, why the shortcuts don't work I couldn't tell you.
Go to Tools -> Modify keyboard shortcuts and in the search field type run. You will see the Run current line or selection and the bindings behind it. If they are empty then we have an immediate answer to your problem. If not, you can bind it to something different.

RStudio "Source on Save" button missing

I'm having an issue where my "Source on Save" button has disappeared from RStudio, and it's really frustrating me. It was there yesterday, but now it's not. Does anyone have any idea what could be the cause of this?
The only thing I can figure out is that the button shows up BEFORE you save a new file. Once you save it, the button disappears. I've also tried updating RStudio, with no luck. Then I tried uninstalling/re-installing. Again, with no luck.
I have no idea what might have caused it to disappear since yesterday. I've been writing some code for one of my personal projects, but nothing crazy.
I'm running RStudio 0.98.977(now) on Win7.
This is really frustrating. Any help would be appreciated. Thanks!
edit: Also, I tried uploading a screenshot, but SO won't let. All of the file extensions are .R, so they SHOULD be interpreted correctly. Also, this behavior is consistent across all of my R scripts, including ones that previously worked correctly.
I finally figured it out, thanks to this short discussion (which was just answered 2 hours ago, lucky me!):
https://support.rstudio.com/hc/communities/public/questions/202788856-Problem-sourcing-non-shiny-R-code-in-RStudio-0-98-953
Apparently, shiny.ui and shiny.server cannot be located in the same folder as any of the files you want to source or else it thinks all of the other files in that folder are part of the Shiny app. I guess this throws it off somehow. I still don't know why it just showed up today, because I haven't used that app in the last several days, and I've been working on projects non-stop since then....but whatever, it works now.
Hopefully, this helps someone else out in the future.

Resources