error installing shiny

*** arch - i386
C:/RBuildTools/3.5/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -Ilib/ -DR_NO_REMAP -O2 -Wall -mtune=generic -c fastmap.cpp -o fastmap.o
fastmap.cpp: In function 'SEXPREC* C_map_has(SEXP, SEXP)':
fastmap.cpp:115:23: error: 'si_map' has no member named 'contains'
bool found = map->contains(key);
^
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:215: fastmap.o] Error 1
ERROR: compilation failed for package 'fastmap'

  • removing 'C:/Users/queza/OneDrive/Documentos/R/win-library/3.6/fastmap'
    Warning in install.packages :
    installation of package ‘fastmap’ had non-zero exit status
    ERROR: dependency 'fastmap' is not available for package 'shiny'
  • removing 'C:/Users/queza/OneDrive/Documentos/R/win-library/3.6/shiny'
    Warning in install.packages :
    installation of package ‘shiny’ had non-zero exit status

Hi, what version of R is this? Apparently the fastmap package fails to compile here.

One workaround is to use Posit Package Manager which has binary packages for older versions of R, so you don't need to compile them from source. They seem to have a binary for the lastest fastmap version, for R 3.6.x. So you can do this:

options(repos = c(
  PPM = "https://packagemanager.rstudio.com/all/latest", 
  CRAN = "https://cloud.r-project.org"
))
install.packages("fastmap")
install.packages("shiny")

Thank you Gabor, it works fine

By the way mi R version is 3.6.1

Regards

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.