Hi,
I've tried to install the 'tidyverse' package, but keep getting this error:
Error in install.packages : cannot open file 'C:/Users/avake/OneDrive/Documents/R/win-library/4.0/file5a88226a1aa1/desc/DESCRIPTION': Permission denied
even though I've tried to re-install both Rtools, Rstudio and the latest version of R.
install.packages("tidyverse")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/avake/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘desc’, ‘pkgbuild’, ‘rprojroot’, ‘pkgload’, ‘praise’, ‘colorspace’, ‘sys’, ‘ps’, ‘highr’, ‘markdown’, ‘plyr’, ‘testthat’, ‘farver’, ‘labeling’, ‘munsell’, ‘RColorBrewer’, ‘viridisLite’, ‘askpass’, ‘rematch’, ‘prettyunits’, ‘processx’, ‘knitr’, ‘yaml’, ‘htmltools’, ‘evaluate’, ‘base64enc’, ‘tinytex’, ‘xfun’, ‘backports’, ‘generics’, ‘reshape2’, ‘assertthat’, ‘glue’, ‘fansi’, ‘DBI’, ‘lifecycle’, ‘R6’, ‘tidyselect’, ‘ellipsis’, ‘pkgconfig’, ‘Rcpp’, ‘BH’, ‘plogr’, ‘digest’, ‘gtable’, ‘isoband’, ‘scales’, ‘withr’, ‘vctrs’, ‘curl’, ‘mime’, ‘openssl’, ‘utf8’, ‘clipr’, ‘cellranger’, ‘progress’, ‘callr’, ‘fs’, ‘rmarkdown’, ‘whisker’, ‘selectr’, ‘stringi’, ‘broom’, ‘cli’, ‘crayon’, ‘dbplyr’, ‘dplyr’, ‘forcats’, ‘ggplot2’, ‘haven’, ‘hms’, ‘httr’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘purrr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rlang’, ‘rstudioapi’, ‘rvest’, ‘stringr’, ‘tibble’, ‘tidyr’, ‘xml2’
There is a binary version available but the
source version is later:
binary source needs_compilation
xml2 1.3.1 1.3.2 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/desc_1.2.0.zip'
Content type 'application/zip' length 288423 bytes (281 KB)
downloaded 281 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/pkgbuild_1.0.7.zip'
Content type 'application/zip' length 137113 bytes (133 KB)
downloaded 133 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rprojroot_1.3-2.zip'
Content type 'application/zip' length 84626 bytes (82 KB)
downloaded 82 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/pkgload_1.0.2.zip'
Content type 'application/zip' length 157080 bytes (153 KB)
downloaded 153 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/praise_1.0.0.zip'
Content type 'application/zip' length 19666 bytes (19 KB)
downloaded 19 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/colorspace_1.4-1.zip'
Content type 'application/zip' length 2595895 bytes (2.5 MB)
downloaded 2.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/sys_3.3.zip'
Content type 'application/zip' length 59545 bytes (58 KB)
downloaded 58 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ps_1.3.2.zip'
Content type 'application/zip' length 676553 bytes (660 KB)
downloaded 660 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/highr_0.8.zip'
Content type 'application/zip' length 48579 bytes (47 KB)
downloaded 47 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/markdown_1.1.zip'
Content type 'application/zip' length 188549 bytes (184 KB)
downloaded 184 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/plyr_1.8.6.zip'
Content type 'application/zip' length 1498045 bytes (1.4 MB)
downloaded 1.4 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/testthat_2.3.2.zip'
Content type 'application/zip' length 1973702 bytes (1.9 MB)
downloaded 1.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/farver_2.0.3.zip'
Content type 'application/zip' length 1694074 bytes (1.6 MB)
downloaded 1.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/labeling_0.3.zip'
Content type 'application/zip' length 62226 bytes (60 KB)
downloaded 60 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/munsell_0.5.0.zip'
Content type 'application/zip' length 244640 bytes (238 KB)
downloaded 238 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/RColorBrewer_1.1-2.zip'
Content type 'application/zip' length 55583 bytes (54 KB)
downloaded 54 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/viridisLite_0.3.0.zip'
Content type 'application/zip' length 60509 bytes (59 KB)
downloaded 59 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/askpass_1.1.zip'
Content type 'application/zip' length 243462 bytes (237 KB)
downloaded 237 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rematch_1.0.1.zip'
Content type 'application/zip' length 16034 bytes (15 KB)
downloaded 15 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/prettyunits_1.1.1.zip'
Content type 'application/zip' length 37569 bytes (36 KB)
downloaded 36 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/processx_3.4.2.zip'
Content type 'application/zip' length 1121184 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/knitr_1.28.zip'
Content type 'application/zip' length 1431163 bytes (1.4 MB)
downloaded 1.4 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/yaml_2.2.1.zip'
Content type 'application/zip' length 207774 bytes (202 KB)
downloaded 202 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/htmltools_0.4.0.zip'
Content type 'application/zip' length 879498 bytes (858 KB)
downloaded 858 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/evaluate_0.14.zip'
Content type 'application/zip' length 76244 bytes (74 KB)
downloaded 74 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/base64enc_0.1-3.zip'
Content type 'application/zip' length 42987 bytes (41 KB)
downloaded 41 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tinytex_0.22.zip'
Content type 'application/zip' length 107139 bytes (104 KB)
downloaded 104 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/xfun_0.13.zip'
Content type 'application/zip' length 185583 bytes (181 KB)
downloaded 181 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/backports_1.1.6.zip'
Content type 'application/zip' length 77609 bytes (75 KB)
downloaded 75 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/generics_0.0.2.zip'
Content type 'application/zip' length 63259 bytes (61 KB)
downloaded 61 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/reshape2_1.4.4.zip'
Content type 'application/zip' length 814471 bytes (795 KB)
downloaded 795 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/assertthat_0.2.1.zip'
Content type 'application/zip' length 54920 bytes (53 KB)
downloaded 53 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/glue_1.4.0.zip'
Content type 'application/zip' length 158169 bytes (154 KB)
downloaded 154 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/fansi_0.4.1.zip'
Content type 'application/zip' length 222486 bytes (217 KB)
downloaded 217 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/DBI_1.1.0.zip'
Content type 'application/zip' length 656708 bytes (641 KB)
downloaded 641 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/lifecycle_0.2.0.zip'
Content type 'application/zip' length 101485 bytes (99 KB)
downloaded 99 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/R6_2.4.1.zip'
Content type 'application/zip' length 59063 bytes (57 KB)
downloaded 57 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyselect_1.0.0.zip'
Content type 'application/zip' length 244654 bytes (238 KB)
downloaded 238 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ellipsis_0.3.0.zip'
Content type 'application/zip' length 44502 bytes (43 KB)
downloaded 43 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/pkgconfig_2.0.3.zip'
Content type 'application/zip' length 22293 bytes (21 KB)
downloaded 21 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/Rcpp_1.0.4.6.zip'
Content type 'application/zip' length 3168097 bytes (3.0 MB)
downloaded 3.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/BH_1.72.0-3.zip'
Content type 'application/zip' length 18270708 bytes (17.4 MB)
downloaded 17.4 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/plogr_0.2.0.zip'
Content type 'application/zip' length 18834 bytes (18 KB)
downloaded 18 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/digest_0.6.25.zip'
Content type 'application/zip' length 244536 bytes (238 KB)
downloaded 238 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/gtable_0.3.0.zip'
Content type 'application/zip' length 433761 bytes (423 KB)
downloaded 423 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/isoband_0.2.1.zip'
Content type 'application/zip' length 3472835 bytes (3.3 MB)
downloaded 3.3 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/scales_1.1.0.zip'
Content type 'application/zip' length 552989 bytes (540 KB)
downloaded 540 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/withr_2.2.0.zip'
Content type 'application/zip' length 205608 bytes (200 KB)
downloaded 200 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.2.4.zip'
Content type 'application/zip' length 999387 bytes (975 KB)
downloaded 975 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/curl_4.3.zip'
Content type 'application/zip' length 4125487 bytes (3.9 MB)
downloaded 3.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/mime_0.9.zip'
Content type 'application/zip' length 48290 bytes (47 KB)
downloaded 47 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/openssl_1.4.1.zip'
Content type 'application/zip' length 3966977 bytes (3.8 MB)
downloaded 3.8 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/utf8_1.1.4.zip'
Content type 'application/zip' length 208291 bytes (203 KB)
downloaded 203 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/clipr_0.7.0.zip'
Content type 'application/zip' length 51700 bytes (50 KB)
downloaded 50 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cellranger_1.1.0.zip'
Content type 'application/zip' length 103334 bytes (100 KB)
downloaded 100 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/progress_1.2.2.zip'
Content type 'application/zip' length 85159 bytes (83 KB)
downloaded 83 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/callr_3.4.3.zip'
Content type 'application/zip' length 390023 bytes (380 KB)
downloaded 380 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/fs_1.4.1.zip'
Content type 'application/zip' length 574339 bytes (560 KB)
downloaded 560 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rmarkdown_2.1.zip'
Content type 'application/zip' length 3615903 bytes (3.4 MB)
downloaded 3.4 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/whisker_0.4.zip'
Content type 'application/zip' length 83048 bytes (81 KB)
downloaded 81 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/selectr_0.4-2.zip'
Content type 'application/zip' length 486010 bytes (474 KB)
downloaded 474 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/stringi_1.4.6.zip'
Content type 'application/zip' length 15217051 bytes (14.5 MB)
downloaded 14.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/broom_0.5.6.zip'
Content type 'application/zip' length 1962922 bytes (1.9 MB)
downloaded 1.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_2.0.2.zip'
Content type 'application/zip' length 399424 bytes (390 KB)
downloaded 390 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/crayon_1.3.4.zip'
Content type 'application/zip' length 749434 bytes (731 KB)
downloaded 731 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/dbplyr_1.4.3.zip'
Content type 'application/zip' length 636412 bytes (621 KB)
downloaded 621 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/dplyr_0.8.5.zip'
Content type 'application/zip' length 3289608 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/forcats_0.5.0.zip'
Content type 'application/zip' length 356455 bytes (348 KB)
downloaded 348 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ggplot2_3.3.0.zip'
Content type 'application/zip' length 4015190 bytes (3.8 MB)
downloaded 3.8 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/haven_2.2.0.zip'
Content type 'application/zip' length 1228509 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/hms_0.5.3.zip'
Content type 'application/zip' length 107544 bytes (105 KB)
downloaded 105 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/httr_1.4.1.zip'
Content type 'application/zip' length 513390 bytes (501 KB)
downloaded 501 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/jsonlite_1.6.1.zip'
Content type 'application/zip' length 1167627 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/lubridate_1.7.8.zip'
Content type 'application/zip' length 1735555 bytes (1.7 MB)
downloaded 1.7 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/magrittr_1.5.zip'
Content type 'application/zip' length 157497 bytes (153 KB)
downloaded 153 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/modelr_0.1.6.zip'
Content type 'application/zip' length 202918 bytes (198 KB)
downloaded 198 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/pillar_1.4.3.zip'
Content type 'application/zip' length 183310 bytes (179 KB)
downloaded 179 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/purrr_0.3.4.zip'
Content type 'application/zip' length 428165 bytes (418 KB)
downloaded 418 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/readr_1.3.1.zip'
Content type 'application/zip' length 1722882 bytes (1.6 MB)
downloaded 1.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/readxl_1.3.1.zip'
Content type 'application/zip' length 1708806 bytes (1.6 MB)
downloaded 1.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/reprex_0.3.0.zip'
Content type 'application/zip' length 430045 bytes (419 KB)
downloaded 419 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlang_0.4.5.zip'
Content type 'application/zip' length 1110537 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rstudioapi_0.11.zip'
Content type 'application/zip' length 280235 bytes (273 KB)
downloaded 273 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rvest_0.3.5.zip'
Content type 'application/zip' length 663333 bytes (647 KB)
downloaded 647 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/stringr_1.4.0.zip'
Content type 'application/zip' length 216519 bytes (211 KB)
downloaded 211 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tibble_3.0.1.zip'
Content type 'application/zip' length 410039 bytes (400 KB)
downloaded 400 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyr_1.0.2.zip'
Content type 'application/zip' length 1478776 bytes (1.4 MB)
downloaded 1.4 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/xml2_1.3.1.zip'
Content type 'application/zip' length 3002253 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyverse_1.3.0.zip'
Content type 'application/zip' length 440009 bytes (429 KB)
downloaded 429 KB
Error in install.packages : cannot open file 'C:/Users/avake/OneDrive/Documents/R/win-library/4.0/file5a88226a1aa1/desc/DESCRIPTION': Permission denied
>