# Installation issue with .Rprofile or R\_DEFAULT\_PACKAGES

**URL:** <https://community.exploratory.io/t/installation-issue-with-rprofile-or-r-default-packages/1181>\
**Category:** Issues\
**Created:** [June 15, 2018, 3:58am UTC](https://community.exploratory.io/t/installation-issue-with-rprofile-or-r-default-packages/1181 "2018-06-15T03:58:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1](https://community.exploratory.io/user_avatar/community.exploratory.io/user1/32/11_2.png) [@user1](https://community.exploratory.io/u/user1)\
**Post date:** [June 15, 2018, 3:58am UTC](https://community.exploratory.io/t/installation-issue-with-rprofile-or-r-default-packages/1181/1 "2018-06-15T03:58:01Z")

</div>

If you define your own .Rprofile in your home directory or you set R\_DEFAULT\_PACKAGES environment variable to load some R packages automatically at R startup time, the setup process of the Exploratory may fail with an error like this.

 ![](https://community.exploratory.io/uploads/default/original/1X/44cd327e58abb83b003d6adf1ef69319e5163ff8.png)

This is because Exploratory uses its own repository to store R packages, and at the first installation time, that repository is empty so that it fails to load the R packages you defined in .Rprofile.

Here is how to workaroud this.

- Temporarily rename the .Rprofile file, or unset R\_DEFAULT\_PACKAGES
- Install and setup Exploratory.
- Once you finish the installation, install R packages from the project list screen.

 ![](https://community.exploratory.io/uploads/default/original/1X/684cf29c99dbbd4aa7e21b842be47dd196087357.png)

- Once you install all the R packages you need, get back .Rprofile or R\_DEFAULT\_PACKAGES.

 ![](https://community.exploratory.io/uploads/default/original/1X/5f73a4f412e8af66554e9b6d275c5cd53da35b65.png)
