Invalid UTF-8 Issue

Hello,
I'm running into an issue installing tidyverse. Any thoughts are greatly appreciated.

> install.packages("tidyverse", dependencies = TRUE, repos='http://cran.us.r-project.org')
trying URL 'http://cran.us.r-project.org/src/contrib/tidyverse_1.2.1.tar.gz'
Content type 'application/x-gzip' length 61647 bytes (60 KB)
==================================================
downloaded 60 KB

* installing *source* package ‘tidyverse’ ...
** package ‘tidyverse’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error: package or namespace load failed for ‘tidyverse’:
 .onAttach failed in attachNamespace() for 'tidyverse', details:
  call: gsub(ansi_regex, "", string, perl = TRUE)
  error: input string 1 is invalid UTF-8
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/hpc/applications/r/3.4.4/lib64/R/library/tidyverse’

The downloaded source packages are in
	‘/tmp/Rtmp5mmlaL/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("tidyverse", dependencies = TRUE, repos = "http://cran.us.r-project.org") :
  installation of package ‘tidyverse’ had non-zero exit status
> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /hpc/applications/intel/2018.1/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):

Intel 18.0.1 compilers and MKL are being used.

1 Like