Question: I have Ubuntu 16.04 and after update of R to 3.4.1 version it does not see my packages even though they have also been updated:

```
> library(dplyr)
Error in library(dplyr) : there is no package called ‘dplyr’

```

Packages are there:

```
$ ls ~/R/x86_64-pc-linux-gnu-library/3.4/ | grep plyr
dplyr
plyr

```

My `.libPaths`:

```
> .libPaths()
[1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"       "/usr/lib/R/library" 

```

**Setting `.libPaths` to desired path does the thing just for one session.** I'd like it to be permanent. 

I also tried to set the variables `R_LIBS`, `R_LIBS_SITE` and `R_LIBS_USER` to desired path as indicated [here](https://stackoverflow.com/questions/24387660/how-to-change-libpaths-permanently-in-r?answertab=votes#tab-top) but it worked only in the console (didn't work in RStudio).

Answer: 
Found the solution:
In the file `/usr/lib/R/etc/Renviron` there is a configuration of R.

In lines 43-45 there is:

```
# edd Jun 2017  Comment-out R_LIBS_USER
#R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/3.4'}
##R_LIBS_USER=${R_LIBS_USER-'~/Library/R/3.4/library'}

```

I have uncommented `R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/3.4'}`, restarted RStudio and now it works.

**EDIT:** Looking at the comments, it seems like a planned behaviour. [Here](https://stackoverflow.com/questions/44861967/r-3-4-1-single-candle-personal-library-path-error-unable-to-create-na/44903158#44903158) is another solution.
I had a similar problem with Ubuntu 16.04. Call terminal R and try to install one any package in the terminal. Then use rstudio.