Hi,
Thanks for your help -Much appreciated!
I really want to learn this, and every little thing is an obstacle. 
- I open my project in a new session and the packrat error appears. I dont know where are the lines that you recommend to delete?
R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'packrat/init.R': No such file or directory
- New problem: I cannot load data. Is it linked to the "error in file" above? I get this error:
> GLOPIS <- read.delim("~/GLOPIS_GICC05-Frontier2015.TXT")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
- Trying to solve my initial problem to install ggbiplot, I get the same error. I re-installed the packages in a new session, and get the same error (scroll down the end):
> install.packages("devtools")
Installing package into ‘C:/Users/Agathe/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ps’, ‘backports’, ‘ini’, ‘processx’, ‘curl’, ‘mime’, ‘openssl’, ‘desc’, ‘prettyunits’, ‘rprojroot’, ‘xopen’, ‘clipr’, ‘clisymbols’, ‘fs’, ‘gh’, ‘whisker’, ‘callr’, ‘git2r’, ‘httr’, ‘jsonlite’, ‘memoise’, ‘pkgbuild’, ‘pkgload’, ‘rcmdcheck’, ‘remotes’, ‘rstudioapi’, ‘sessioninfo’, ‘usethis’
There is a binary version available but the source version is later:
binary source needs_compilation
rcmdcheck 1.3.1 1.3.2 FALSE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ps_1.3.0.zip'
Content type 'application/zip' length 306296 bytes (299 KB)
downloaded 299 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/backports_1.1.3.zip'
Content type 'application/zip' length 65892 bytes (64 KB)
downloaded 64 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ini_0.3.1.zip'
Content type 'application/zip' length 15500 bytes (15 KB)
downloaded 15 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/processx_3.2.1.zip'
Content type 'application/zip' length 306244 bytes (299 KB)
downloaded 299 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/curl_3.3.zip'
Content type 'application/zip' length 2995621 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/mime_0.6.zip'
Content type 'application/zip' length 47809 bytes (46 KB)
downloaded 46 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/openssl_1.1.zip'
Content type 'application/zip' length 3937463 bytes (3.8 MB)
downloaded 3.8 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/desc_1.2.0.zip'
Content type 'application/zip' length 283924 bytes (277 KB)
downloaded 277 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/prettyunits_1.0.2.zip'
Content type 'application/zip' length 33184 bytes (32 KB)
downloaded 32 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rprojroot_1.3-2.zip'
Content type 'application/zip' length 83810 bytes (81 KB)
downloaded 81 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/xopen_1.0.0.zip'
Content type 'application/zip' length 24461 bytes (23 KB)
downloaded 23 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/clipr_0.5.0.zip'
Content type 'application/zip' length 40709 bytes (39 KB)
downloaded 39 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/clisymbols_1.2.0.zip'
Content type 'application/zip' length 20895 bytes (20 KB)
downloaded 20 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/fs_1.2.6.zip'
Content type 'application/zip' length 956275 bytes (933 KB)
downloaded 933 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/gh_1.0.1.zip'
Content type 'application/zip' length 49043 bytes (47 KB)
downloaded 47 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/whisker_0.3-2.zip'
Content type 'application/zip' length 80955 bytes (79 KB)
downloaded 79 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/callr_3.1.1.zip'
Content type 'application/zip' length 244962 bytes (239 KB)
downloaded 239 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/git2r_0.24.0.zip'
Content type 'application/zip' length 2873845 bytes (2.7 MB)
downloaded 2.7 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/httr_1.4.0.zip'
Content type 'application/zip' length 495960 bytes (484 KB)
downloaded 484 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/jsonlite_1.6.zip'
Content type 'application/zip' length 1160693 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/memoise_1.1.0.zip'
Content type 'application/zip' length 36431 bytes (35 KB)
downloaded 35 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/pkgbuild_1.0.2.zip'
Content type 'application/zip' length 128276 bytes (125 KB)
downloaded 125 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/pkgload_1.0.2.zip'
Content type 'application/zip' length 154962 bytes (151 KB)
downloaded 151 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/remotes_2.0.2.zip'
Content type 'application/zip' length 273234 bytes (266 KB)
downloaded 266 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rstudioapi_0.9.0.zip'
Content type 'application/zip' length 204226 bytes (199 KB)
downloaded 199 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/sessioninfo_1.1.1.zip'
Content type 'application/zip' length 46417 bytes (45 KB)
downloaded 45 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/usethis_1.4.0.zip'
Content type 'application/zip' length 521099 bytes (508 KB)
downloaded 508 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/devtools_2.0.1.zip'
Content type 'application/zip' length 384843 bytes (375 KB)
downloaded 375 KB
package ‘ps’ successfully unpacked and MD5 sums checked
package ‘backports’ successfully unpacked and MD5 sums checked
package ‘ini’ successfully unpacked and MD5 sums checked
package ‘processx’ successfully unpacked and MD5 sums checked
package ‘curl’ successfully unpacked and MD5 sums checked
package ‘mime’ successfully unpacked and MD5 sums checked
package ‘openssl’ successfully unpacked and MD5 sums checked
package ‘desc’ successfully unpacked and MD5 sums checked
package ‘prettyunits’ successfully unpacked and MD5 sums checked
package ‘rprojroot’ successfully unpacked and MD5 sums checked
package ‘xopen’ successfully unpacked and MD5 sums checked
package ‘clipr’ successfully unpacked and MD5 sums checked
package ‘clisymbols’ successfully unpacked and MD5 sums checked
package ‘fs’ successfully unpacked and MD5 sums checked
package ‘gh’ successfully unpacked and MD5 sums checked
package ‘whisker’ successfully unpacked and MD5 sums checked
package ‘callr’ successfully unpacked and MD5 sums checked
package ‘git2r’ successfully unpacked and MD5 sums checked
package ‘httr’ successfully unpacked and MD5 sums checked
package ‘jsonlite’ successfully unpacked and MD5 sums checked
package ‘memoise’ successfully unpacked and MD5 sums checked
package ‘pkgbuild’ successfully unpacked and MD5 sums checked
package ‘pkgload’ successfully unpacked and MD5 sums checked
package ‘remotes’ successfully unpacked and MD5 sums checked
package ‘rstudioapi’ successfully unpacked and MD5 sums checked
package ‘sessioninfo’ successfully unpacked and MD5 sums checked
package ‘usethis’ successfully unpacked and MD5 sums checked
package ‘devtools’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Agathe\AppData\Local\Temp\RtmpumvyZO\downloaded_packages
installing the source package ‘rcmdcheck’
trying URL 'https://cran.rstudio.com/src/contrib/rcmdcheck_1.3.2.tar.gz'
Content type 'application/x-gzip' length 1408582 bytes (1.3 MB)
downloaded 1.3 MB
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
Calls: source -> file
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'packrat/init.R': No such file or directory
Execution halted
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rcmdcheck’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Agathe\AppData\Local\Temp\RtmpumvyZO\downloaded_packages’
>
How to fix that new error?