unable to library dplyr, tidyverse and Purrr.

> install.packages('dplyr', repos = 'https://cloud.r-project.org')
also installing the dependencies ‘ellipsis’, ‘vctrs’, ‘cli’, ‘pillar’, ‘glue’, ‘Rcpp’, ‘rlang’, ‘tibble’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
ellipsis   0.1.0  0.3.0              TRUE
vctrs      0.1.0  0.2.4              TRUE
cli        1.1.0  2.0.2             FALSE
pillar     1.3.1  1.4.3             FALSE
glue       1.3.1  1.3.2              TRUE
Rcpp       1.0.1  1.0.4              TRUE
rlang      0.3.4  0.4.5              TRUE
tibble     2.1.1  2.1.3              TRUE
dplyr    0.8.0.1  0.8.5              TRUE

  Binaries will be installed
trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/glue_1.3.1.zip'
Content type 'application/zip' length 172415 bytes (168 KB)
downloaded 168 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/Rcpp_1.0.1.zip'
Content type 'application/zip' length 4376246 bytes (4.2 MB)
downloaded 4.2 MB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/tibble_2.1.1.zip'
Content type 'application/zip' length 238931 bytes (233 KB)
downloaded 233 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/dplyr_0.8.0.1.zip'
Content type 'application/zip' length 3029353 bytes (2.9 MB)
downloaded 2.9 MB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘glue’
package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘Rcpp’
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘rlang’
package ‘tibble’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘tibble’
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘dplyr’

The downloaded binary packages are in
	C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO\downloaded_packages
installing the source packages ‘cli’, ‘pillar’

trying URL 'https://cloud.r-project.org/src/contrib/cli_2.0.2.tar.gz'
Content type 'application/x-gzip' length 116357 bytes (113 KB)
downloaded 113 KB

trying URL 'https://cloud.r-project.org/src/contrib/pillar_1.4.3.tar.gz'
Content type 'application/x-gzip' length 230874 bytes (225 KB)
downloaded 225 KB

'E:\Myra' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"E:/Myra school of business/1st Semister/R-3.4.2/bin/x64/R" CMD INSTALL -l "E:\Myra school of business\1st Semister\R-3.4.2\library" C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO/downloaded_packages/cli_2.0.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘cli’ had non-zero exit status
'E:\Myra' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"E:/Myra school of business/1st Semister/R-3.4.2/bin/x64/R" CMD INSTALL -l "E:\Myra school of business\1st Semister\R-3.4.2\library" C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO/downloaded_packages/pillar_1.4.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO\downloaded_packages’
> library(dplyr)
Error in library(dplyr) : there is no package called ‘dplyr’
> install.packages('dplyr', repos = 'https://cloud.r-project.org')
also installing the dependencies ‘ellipsis’, ‘vctrs’, ‘cli’, ‘pillar’, ‘glue’, ‘Rcpp’, ‘rlang’, ‘tibble’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
ellipsis   0.1.0  0.3.0              TRUE
vctrs      0.1.0  0.2.4              TRUE
cli        1.1.0  2.0.2             FALSE
pillar     1.3.1  1.4.3             FALSE
glue       1.3.1  1.3.2              TRUE
Rcpp       1.0.1  1.0.4              TRUE
rlang      0.3.4  0.4.5              TRUE
tibble     2.1.1  2.1.3              TRUE
dplyr    0.8.0.1  0.8.5              TRUE

  Binaries will be installed
trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/glue_1.3.1.zip'
Content type 'application/zip' length 172415 bytes (168 KB)
downloaded 168 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/Rcpp_1.0.1.zip'
Content type 'application/zip' length 4376246 bytes (4.2 MB)
downloaded 4.2 MB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/tibble_2.1.1.zip'
Content type 'application/zip' length 238931 bytes (233 KB)
downloaded 233 KB

trying URL 'https://cloud.r-project.org/bin/windows/contrib/3.4/dplyr_0.8.0.1.zip'
Content type 'application/zip' length 3029353 bytes (2.9 MB)
downloaded 2.9 MB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘glue’
package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘Rcpp’
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘rlang’
package ‘tibble’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘tibble’
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘dplyr’

The downloaded binary packages are in
	C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO\downloaded_packages
installing the source packages ‘cli’, ‘pillar’

trying URL 'https://cloud.r-project.org/src/contrib/cli_2.0.2.tar.gz'
Content type 'application/x-gzip' length 116357 bytes (113 KB)
downloaded 113 KB

trying URL 'https://cloud.r-project.org/src/contrib/pillar_1.4.3.tar.gz'
Content type 'application/x-gzip' length 230874 bytes (225 KB)
downloaded 225 KB

'E:\Myra' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"E:/Myra school of business/1st Semister/R-3.4.2/bin/x64/R" CMD INSTALL -l "E:\Myra school of business\1st Semister\R-3.4.2\library" C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO/downloaded_packages/cli_2.0.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘cli’ had non-zero exit status
'E:\Myra' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"E:/Myra school of business/1st Semister/R-3.4.2/bin/x64/R" CMD INSTALL -l "E:\Myra school of business\1st Semister\R-3.4.2\library" C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO/downloaded_packages/pillar_1.4.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO\downloaded_packages’
> library(dplyr)
Error in library(dplyr) : there is no package called ‘dplyr’
> 
> install.packages("dplyr")
also installing the dependencies ‘ellipsis’, ‘vctrs’, ‘cli’, ‘pillar’, ‘glue’, ‘Rcpp’, ‘rlang’, ‘tibble’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
ellipsis   0.1.0  0.3.0              TRUE
vctrs      0.1.0  0.2.4              TRUE
cli        1.1.0  2.0.2             FALSE
pillar     1.3.1  1.4.3             FALSE
glue       1.3.1  1.3.2              TRUE
Rcpp       1.0.1  1.0.4              TRUE
rlang      0.3.4  0.4.5              TRUE
tibble     2.1.1  2.1.3              TRUE
dplyr    0.8.0.1  0.8.5              TRUE

  Binaries will be installed
trying URL 'https://muug.ca/mirror/cran/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB

trying URL 'https://muug.ca/mirror/cran/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB

trying URL 'https://muug.ca/mirror/cran/bin/windows/contrib/3.4/glue_1.3.1.zip'
Content type 'application/zip' length 172415 bytes (168 KB)
downloaded 168 KB

trying URL 'https://muug.ca/mirror/cran/bin/windows/contrib/3.4/Rcpp_1.0.1.zip'
Content type 'application/zip' length 4376246 bytes (4.2 MB)
downloaded 4.2 MB

trying URL 'https://muug.ca/mirror/cran/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://muug.ca/mirror/cran/bin/windows/contrib/3.4/tibble_2.1.1.zip'
Content type 'application/zip' length 238931 bytes (233 KB)
downloaded 233 KB

trying URL 'https://muug.ca/mirror/cran/bin/windows/contrib/3.4/dplyr_0.8.0.1.zip'
Content type 'application/zip' length 3029353 bytes (2.9 MB)
downloaded 2.9 MB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘glue’
package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘Rcpp’
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘rlang’
package ‘tibble’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘tibble’
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘dplyr’

The downloaded binary packages are in
	C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO\downloaded_packages
installing the source packages ‘cli’, ‘pillar’

trying URL 'https://muug.ca/mirror/cran/src/contrib/cli_2.0.2.tar.gz'
Content type 'application/octet-stream' length 116357 bytes (113 KB)
downloaded 113 KB

trying URL 'https://muug.ca/mirror/cran/src/contrib/pillar_1.4.3.tar.gz'
Content type 'application/octet-stream' length 230874 bytes (225 KB)
downloaded 225 KB

'E:\Myra' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"E:/Myra school of business/1st Semister/R-3.4.2/bin/x64/R" CMD INSTALL -l "E:\Myra school of business\1st Semister\R-3.4.2\library" C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO/downloaded_packages/cli_2.0.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘cli’ had non-zero exit status
'E:\Myra' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"E:/Myra school of business/1st Semister/R-3.4.2/bin/x64/R" CMD INSTALL -l "E:\Myra school of business\1st Semister\R-3.4.2\library" C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO/downloaded_packages/pillar_1.4.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\Dell\AppData\Local\Temp\RtmpAnaPRO\downloaded_packages’
> library(dplyr)
Error in library(dplyr) : there is no package called ‘dplyr

R doesn't like file paths with empty spaces, I recommend you to install R on a standard location (i.e. Program Files).

Alternatively, you could try running this command before installing the package

Sys.setenv("R_HOME"=normalizePath(R.home()))
1 Like

Maybe try changing to a local package management repository, i.e. via the Change button in Primary CRAN repository text box.

The logs show that the packages are being downloaded so I don't think it is a problem with the CRAN repository.

This is the problematic part, the console command has problems with empty spaces and single forward slashes on the R executable path.