Unable install map view packages on rstudio server

I'm unable to install mapview package in rstudio server.
this is the error im getting...

* installing *source* package ‘mapview’ ...
** package ‘mapview’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/home/bernard/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/home/bernard/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c brewCppFun.cpp -o brewCppFun.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/home/bernard/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c mapviewCppFun.cpp -o mapviewCppFun.o
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o mapview.so RcppExports.o brewCppFun.o mapviewCppFun.o -L/usr/lib/R/lib -lR
installing to /home/bernard/R/x86_64-pc-linux-gnu-library/3.2/00LOCK-mapview/00new/mapview/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error: package ‘base64enc’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
Execution halted
ERROR: lazy loading failed for package ‘mapview’
* removing ‘/home/bernard/R/x86_64-pc-linux-gnu-library/3.2/mapview’
Warning in install.packages :
  installation of package ‘mapview’ had non-zero exit status

The downloaded source packages are in
platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
major          3                           
minor          6.1                         
year           2019                        
month          07                          
day            05                          
svn rev        76782                       
language       R                           
version.string R version 3.6.1 (2019-07-05)
nickname       Action of the Toes          

Im running this on a vnc server with ubuntu16.04. Thanks in advance

Follow the instructions in the error message, try reinstalling base64enc package


If you have recently updated R from an old version, it would be helpful to update your packages with checkBuilt = TRUE option.

update.packages(checkBuilt = TRUE, ask = FALSE)
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.