r-spatial / leafpop

Include Tables, Images and Graphs in Leaflet Popups
Other
113 stars 15 forks source link

Compilation error #6

Closed durraniu closed 5 years ago

durraniu commented 5 years ago

I am trying to install the developmental version but getting compilation error. Please note that RTools 3.5 is installed on my system and added to PATH. Following is the error message:

> remotes::install_github("r-spatial/leafpop")
Downloading GitHub repo r-spatial/leafpop@master
Installing package into ‘C:/Users/durraniu/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
* installing *source* package 'leafpop' ...
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.4/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.4/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="leafpop.dll" OBJECTS="RcppExports.o brewCppFun.o"' had status 127
ERROR: compilation failed for package 'leafpop'
* removing 'C:/Users/durraniu/Documents/R/win-library/3.4/leafpop'
In R CMD INSTALL
Warning messages:
1: In missing_devel_warning(pkgdir) :
  Package leafpop has compiled code, but no suitable compiler(s) were found. Installation will likely fail.
  Install Rtools and make sure it is in the PATH.
2: running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\durraniu\Documents\R\win-library\3.4" "C:/Users/durraniu/AppData/Local/Temp/Rtmpgphe7M/remotes2ed42aba6df5/r-spatial-leafpop-a5a44d4"' had status 1 
3: In i.p(...) :
  installation of package ‘C:/Users/durraniu/AppData/Local/Temp/Rtmpgphe7M/remotes2ed42aba6df5/r-spatial-leafpop-a5a44d4’ had non-zero exit status
tim-salabim commented 5 years ago

Are you sure that Rtools is properly set in your system environment path?

tim-salabim commented 5 years ago

If compilation is still an issue for anyone, please try to install again from github as the C++ dependency has now been removed.