Is it possible to somehow open several RStudios at the same time? I have Rstudio open, and when I try to open another one, nothing happens. What is the proper way to work on several projects simultaneously in RStudio?
If your work is contained in a separate RStudio project file, it should be as simple as selecting "Open Project in New Session", either from the File menu or from the project selector in the upper-right (at least on a Mac).
On a Windows machine you can "scroll click" on the icon and it will open a new session. You could probably also right click and choose something, not on a PC right now so cant tell for sure.
Related
I am trying to create an shiny app for people that are not R users (they even may be frightened :D).
After the question about server/local app here (How to import remote csv file on a deployed shiny app?), I try to use the shinyShortcut package solution.
I did the following:
devtools::install_github("ewan-keith/shinyShortcut")
library(shinyShortcut)
shinyShortcut(shinyDirectory = "/home/cha/Server",
OS = "unix")
then I got :
So I have all that is normally required (at least that is what I think).
Since I never used the .desktop before, I ran the instruction here.
I put the .desktop on my desktop
Right click and change setting the tutorial did
I allow again from a right click and the .desktop disappears. Everything seemed ok.
However, when I double-clicked on the icon, nothing happened...
I tried to change the web browser or the application to launch it, nothing works.
What did I misunderstand ?
Thanks in advance
Charlotte (Ubuntu 20.04)
I have got downloaded a file that got downloaded in a format .ipynb extension but its not in a readable format. Can anyone help me to figure out how to make it in a readable format? Attaching a screenshot of the file when I tried opening it in notepad.
how to open it in readable format
One of the easiest ways to just view a notebook file that is also 100% secure in case what you are being sent is sensitive: nbpreview.
When you go there it asks you to choose a local file. The file isn't uploaded anywhere. It remains in your browser's local cache so it is useful for sensitive stuff that cannot be public.
Similarly, you can upload it to the notebook{sharing}space which is billed as "the fastest way to share your notebooks". It would provide you with a link to view the notebook you have and can be private if you limit sharing the link.
If the notebook can be posted to Github (repository or gist) or online, you can point nbviewer at it and have it rendered nicely. In fact, although it is technically 'static', nbviewer can render some interactive Plotly plots and widget controls that enable playing back animations comprised of frames. This rendering form is also very nice for sharing with non-programmers as the GitHub cruft is not surrounding the content.
You can use Jupyter running in your browser and backed by a free Jupyter community-run service to view the notebook file as an active notebook, on what is equivalent to a temporary remote machine.
Go to Try Jupyter and select either 'JupyterLab' or 'Jupyter Notebook' from the offerings presented. I'd suggest JupyterLab as the steps outline below are made easier as you have the file navigation pane on the left.
After your session spins up in your browser, if you chose JupyterLab, drag your file from your local machine into the file navigation pane on the left side. It will get a gray dashed line around it when you have dragged it to the right place. Drop it in and let it upload. Now double click on it to open it.
If you don't want to drag-and-drop or you chose Jupyter notebooks (classic notebook interface) make a text file and paste in the content you showed. (It's json format as that is the underlying .ipynb format presently.) Save that file with an .ipynb extension. You should then be able to open it the Jupyter Dashboard. (Note the following in the rest of this section was written before the 'Try Jupyter' offerings were switched to using the exerpimental JupyterLite and so your mileage may vary. If you drag-and-drop into JupyterLite, it actually is in your machine; however, it is in a virtual system in your browser that your local file system cannot access directly. To get what this section was specifically written for now, go here and click on the launch binder badge to trigger a session on a true remote machine served by MyBinder.) You used to click on the logo in the upper left to get to the dashboard but it will now take you to JupyterLab and you can double click to open your notebook file. If you really need the classic dashboard, change the end of the URL to change /lab to /tree.
Note because the environment backing your notebook hasn't been set up to handle everything, you'll be out of luck for now trying to run it. You'd have to add your pokemon.csv and install anything else besides pandas. There are ways to use the MyBinder system to handle that as well; however, probably best learned about later this stage.
The MyBinder session is temporary and unique to you. It will close after 10 minutes of inactivity and no longer be accessible. You can always open another session later and redo the steps. Or learn about other options eventually.
Related:
Nbpreview and a lot of the related tools mentioned here are also covered in Sharing R code in Jupyter notebooks.
(These following suggestions mostly assume the notebook is already online, usually at Github. You can still use a local notebook by uploading it to the session as I suggest above. They do though provide additional ways to learn about using MyBinder to serve active notebooks in your browser.)
How to save code file on GitHub and run on Jupyter notebook?
Run a Jupyter notebook directly online (without downloading it locally)
You need Jupyter Notebook in your machine. That is one option. Otherwise, you can upload the file into GitHub and open the .ipynb file from there.
Is there a way to create a new project in a new session?
When I press "New Project" with a project already open, R asks me if I would like to save the workspace image of the current project. It then closes the current project. There is an option for "Open Project in New Session" for pre-existing projects, but I don't see a way of creating a new project.
In RStudio, after selecting New Project from the project pulldown in the upper right corner of the screen, RStudio asks whether to save the current workspace and brings up a New Project dialog box.
After selecting Existing Directory, the next window includes a checkbox to create the project and open it in a new session. If one checks the checkbox, RStudio keeps the previous project open and creates the new project in a second RStudio session.
I've just read the accepted answer (#Len Greski) to this, which shows a feature that I was never aware of despite using RStudio for quite a long time!
If you are using Mac OS, though, I can also propose an alternative, 'one-click' approach, which is what I use and which works very well. There may be similar variants of this that may work on other operating systems (and if so, please feel free to edit them into this reply, or in the comments).
You can open a 'new' instance of 'RStudio' from a shell command-line using:
open -n /path/RStudio
# replace /path/RStudio with the path to your RStudio installation
You can use this to open as many simultaneous RStudio instances as you like, which each run their own R sessions independently.
To make this into a 'one-click' approach, you can 'wrap' the command-line call into an application (which I keep in the Mac OS 'dock'). I used the 'appify' script by Thomas Aylott / Matthias Bynens: see https://gist.github.com/mathiasbynens/674099.
This now sits in my 'dock', and clicking on it will open a new RStudio instance:
I would like to retrieve the welcome screen (and only it) when I start Atom. That way, I'll be able to choose the project I want to work on each time I start Atom (currently, I have to close the project opened the last time).
I already re-enabled the Welcome package in the init.coffee file so I see the welcome screen each time I start Atom, but there are two problems.
First: this screen is now shown every time I open a new window, so every time I open another project than the current one (I use Projects Manager if it matters). It's not very useful, as I only want to see this screen when I start Atom.
Second: I see the welcome screen on start, but only as new tabs in the last opened project, so the problem remains the same.
Has someone a solution?
The setting you are looking for is Settings > Open Empty Editor On Start, which is on the Core Settings page, right under Ignored Names. Make sure to enable this setting, i.e. check the box. Whenever you start Atom from its icon now, it will start with an empty editor, and will not reopen your previously used files.
I came across this problem, too.
But I found that if I had 'openEmptyEditorOnStart: true' in the config.cson file, and each time I quit the Atom I did "Remove Project Folder" in the "Tree View", next time I opened the Atom edit, I can open it without the last opened project.
Hope it helps. :)
Proper configuration to get empty editor on every start:
✔️ Open Empty Editor On Start
✖️ Restore Previous Windows On Start
Just go to File > Reopen Project > Clear Project History. It worked for me.
I just switched of package tree view
Setting/packages tree-view - disable
And when open Atom it is free of project tree
You need to do both in Core settings:
check Open Empty Editor On Start
set Restore Previous Windows On Start to no
For example, in TortoiseSVN, I can find out when a directory is out-of-date or checked out by looking at the images in the corner of the directory icon. However, I don't have that with ClearCase. Inside of Eclipse, I can see what I have checked in/out, but I'm not always inside Eclipse. It appears that I can right click on the file and I see "Check Out..." as an option if the file is not checked out and "Check In..." as an option if the file is checked out.
What I really want are images or icons to let me know visually what I have checked in and out through the Windows Explorer shell. Is this possible?
Currently, this is not done by any tool/plugin I know of, except for ClearCase Eclipse plugin (where a "recursive" option can be set, to show a "dirty" state on packages of a project if one of the files is checked out)
Since ClearCase is managed file-by-file, that would require a recursive request which may not be compatible with the speed a Windows explorer is supposed to refresh itself.
The best way I found to visually indicate which files are checked out or in is to set Windows Explorer to show file attributes for all of your ClearCase folders. Then you can determine which files are checking in or out by looking to see if the files are read-only or not. When the files are checked in, they are read-only; when they are checked out they are not read-only.
I wonder if it'd be possible to do it this way, with a little bit of Perl? Not particularly efficient, but it's a start...
Is there is a way to change a Windows folder icon using a Perl script?