Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added little conda-R trick #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions techstuff.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
* [Changing your login shell](#Changing-your-login-shell)
* [Sharing data via a shared folder](#Sharing-data-via-a-shared-folder)

### Working with different R in several conda environment with one Rstudio
* [One Rstudio for several conda R environments on your PC](#One-Rstudio-for-all-condas)


## [Using screen](#using-screen) to avoid dropped connections

Expand Down Expand Up @@ -134,6 +137,28 @@ This should give you a prompt that starts with the following: ```(ncbidown) ```

Now you are all set to use the different conda environments available on the nn9305k project.

## One Rstudio for several conda R environments on your PC
To avoid multiple installations of Rstudio in several environments, it is possible to define which R (in which conda environment) will be used for interpretation in R studio:

[Rstudio Article](https://support.rstudio.com/hc/en-us/articles/200486138-Changing-R-versions-for-RStudio-desktop)

For ubuntu

```
cd ~
nano .bashrc
# add the following line to .bashrc
export RSTUDIO_WHICH_R="which R"
# save and close .bashrc
# close and restart console or:
source .bashrc
```
You can now activate the conda environment (with the R version and packages you want to work with) `conda activate <env_name>`or `source activate <env_name` depending on your conda version

From within the activated conda environment start rstudio with `rstudio &`
You can check that the appropriate R version is used in R studio with `R.version.string`


## Sharing data via a shared folder
We have been working for some time with the biolinux virtualmachine on our Windows laptops. One thing that makes life a lot easier is when we can share files between the Windows host and the linux guest system.

Expand Down