# Using multiple R versions

#### Backup

```
tar -cvzf ~/Documents/R-backup.tgz $(ls -d /Library/Frameworks/R.framework/)
```

#### Backup Libraries

```
tar -cvzf ~/Documents/pkg-backup.tgz $(ls -d /Library/Frameworks/R.framework/Versions/[34]*/Resources/library)
```

#### [https://rud.is/rswitch/](https://rud.is/rswitch/)

{% embed url="https://rud.is/rswitch/" %}

{% embed url="https://twitter.com/i/status/1265000050972901376" %}

{% embed url="https://twitter.com/serdarbalci/status/1265204703492747265" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265227021325565955" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265231556613943296" %}

{% embed url="http://mac.r-project.org" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265232240260386816" %}

{% embed url="https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Uninstalling-under-macOS" %}

```
pkgutil --forget org.r-project.R.el-capitan.fw.pkg
```

[https://mac.r-project.org/high-sierra/R-4.0-branch/x86\_64/R-4.0-branch.tar.gz](https://mac.r-project.org/high-sierra/R-4.0-branch/x86_64/R-4.0-branch.tar.gz)

{% embed url="https://twitter.com/hrbrmstr/status/1265232589591384070" %}

[https://mac.r-project.org/el-capitan/R-3.6-branch/R-GUI-7782-3.6-el-capitan-Release.dmg](https://mac.r-project.org/el-capitan/R-3.6-branch/R-GUI-7782-3.6-el-capitan-Release.dmg)

[https://mac.r-project.org/high-sierra/R-4.0-branch/R-GUI-7842-4.0-high-sierra-Release.dmg](https://mac.r-project.org/high-sierra/R-4.0-branch/R-GUI-7842-4.0-high-sierra-Release.dmg)

{% embed url="https://twitter.com/hrbrmstr/status/1265233262072532994" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265242686052843521" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265242897290584064" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265243912534478848" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265244623045263364" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265246351346012161" %}

{% embed url="https://twitter.com/hrbrmstr/status/1265265287580057600" %}
