Solving Tidyverse Install Error
Install error
When you install tidyverse, you might meet the following error.
Warning in install.packages : installation of package ‘xml2’ had non-zero exit status Warning in install.packages : installation of package ‘rvest’ had non-zero exit status Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status
I did. I found some answers in the internet. Those are to install the following 3 packages, libcurl4-openssl-dev libssl-dev libxml2-dev. But it did not work for me.
As I see the rstudio-server's log, it says that it can not move lock file.
Then, I thougt it was a problem of a permission. I changed the whole directory to world writable. But no luck.
Finally, I tried the following code to disable using lock files. And it worked!
install.packages("tidyverse", INSTALL_opts = '--no-lock')
I don't know why this error occurs but I see so many people suffers the same problem.
People answers to the question as to install the dev packages. I think they copied and pasted from othe site to answer the question. But they are not the real answers.