Installing leaflet package failed

839 views
Skip to first unread message

Joga Rao

unread,
Jul 1, 2015, 10:54:37 PM7/1/15
to shiny-...@googlegroups.com
HI 
When I try to install  leaflet package  as advised using the following command 
devtools::install_github("rstudio/leaflet") is failing.

Attached is the  complete install log  and my sessionInfo.
Any help in resolving this will be highly appreciated

Regards
Joga
install_leaflet_errors.txt

Yihui Xie

unread,
Jul 2, 2015, 2:16:19 AM7/2/15
to Joga Rao, shiny-discuss
Hmm. The error message said sp was not found (hence raster could not
be installed, then leaflet failed), but apparently you successfully
loaded it into R. It sounds like a devtools problem? Have you tried to
just install.packages('leaflet') from CRAN?

Regards,
Yihui

Joga Rao

unread,
Jul 2, 2015, 3:11:25 AM7/2/15
to shiny-...@googlegroups.com, joga...@gmail.com
Thanks Yihui

I have tried that as well but no luck.
Attached is the log with errors ( for some reason I could not attach as text file , hence I pasted below)

Your help is very much appreciated.
Kind regards
Joga
################
Rinstall.packages('leaflet')
Installing package into ‘/home/rstudio-server/R/x86_64-redhat-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
also installing the dependency ‘raster’

Content type 'application/x-gzip' length 1022598 bytes (998 KB)
opened URL
==================================================
downloaded 998 KB

Content type 'application/x-gzip' length 401681 bytes (392 KB)
opened URL
==================================================
downloaded 392 KB

Loading required package: MASS
Loading required package: grDevices
Loading required package: graphics
Loading required package: stats
Loading required package: utils
* installing *source* package ‘raster’ ...
** package ‘raster’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c aggregate.c -o aggregate.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c aggregate_get.c -o aggregate_get.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c broom.c -o broom.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c clamp.c -o clamp.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c direction.c -o direction.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c dist_util.c -o dist_util.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c distance.c -o distance.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c edge.c -o edge.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c focal_fun.c -o focal_fun.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c focal_get.c -o focal_get.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c focal_sum.c -o focal_sum.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c intersect.c -o intersect.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c layerize.c -o layerize.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c minmax.c -o minmax.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c mode.c -o mode.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c pointinpoly.c -o pointinpoly.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c rasterize.c -o rasterize.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c reclass.c -o reclass.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c solar.c -o solar.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c terrain.c -o terrain.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c util.c -o util.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c wirth.c -o wirth.o
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -Wl,-z,relro -o raster.so aggregate.o aggregate_get.o broom.o clamp.o direction.o dist_util.o distance.o edge.o focal_fun.o focal_get.o focal_sum.o intersect.o layerize.o minmax.o mode.o pointinpoly.o rasterize.o reclass.o solar.o terrain.o util.o wirth.o -L/usr/lib64/R/lib -lR
installing to /home/rstudio-server/R/x86_64-redhat-linux-gnu-library/3.1/raster/libs
** R
** inst
** byte-compile and prepare package for lazy loading
Creating a generic function for ‘aggregate’ from package ‘stats’ in package ‘raster’
Creating a generic function for ‘as.array’ from package ‘base’ in package ‘raster’
Creating a generic function for ‘as.matrix’ from package ‘base’ in package ‘raster’
Creating a generic function for ‘as.vector’ from package ‘base’ in package ‘raster’
in method for ‘brick’ with signature ‘x="big.matrix"’: no definition for class “big.matrix”
in method for ‘brick’ with signature ‘x="kasc"’: no definition for class “kasc”
in method for ‘brick’ with signature ‘x="grf"’: no definition for class “grf”
in method for ‘coerce’ with signature ‘"STFDF","RasterBrick"’: no definition for class “STFDF”
in method for ‘coerce’ with signature ‘"STSDF","RasterBrick"’: no definition for class “STSDF”
in method for ‘coerce’ with signature ‘"asc","RasterLayer"’: no definition for class “asc”
in method for ‘coerce’ with signature ‘"RasterLayer","asc"’: no definition for class “asc”
in method for ‘coerce’ with signature ‘"kasc","RasterBrick"’: no definition for class “kasc”
in method for ‘coerce’ with signature ‘"kasc","RasterStack"’: no definition for class “kasc”
in method for ‘coerce’ with signature ‘"kde","RasterLayer"’: no definition for class “kde”
in method for ‘coerce’ with signature ‘"grf","RasterBrick"’: no definition for class “grf”
in method for ‘coerce’ with signature ‘"grf","RasterLayer"’: no definition for class “grf”
Creating a generic function for ‘nrow’ from package ‘base’ in package ‘raster’
Creating a generic function for ‘ncol’ from package ‘base’ in package ‘raster’
Creating a generic function for ‘hist’ from package ‘graphics’ in package ‘raster’
Creating a generic function for ‘mean’ from package ‘base’ in package ‘raster’
Creating a generic function for ‘labels’ from package ‘base’ in package ‘raster’
Creating a generic function for ‘print’ from package ‘base’ in package ‘raster’
Creating a generic function for ‘quantile’ from package ‘stats’ in package ‘raster’
in method for ‘raster’ with signature ‘x="big.matrix"’: no definition for class “big.matrix”
in method for ‘raster’ with signature ‘x="kasc"’: no definition for class “kasc”
in method for ‘raster’ with signature ‘x="asc"’: no definition for class “asc”
in method for ‘raster’ with signature ‘x="kde"’: no definition for class “kde”
in method for ‘raster’ with signature ‘x="grf"’: no definition for class “grf”
Creating a generic function for ‘scale’ from package ‘base’ in package ‘raster’
in method for ‘stack’ with signature ‘x="kasc"’: no definition for class “kasc”
** help
*** installing help indices
  converting help for package ‘raster’
    finding HTML links ... done
    Arith-methods                           html  
    Compare-methods                         html  
    Extent-class                            html  
    KML                                     html  
    Logic-methods                           html  
    Math-methods                            html  
    NAvalue                                 html  
    RGB                                     html  
    Raster-classes                          html  
    Summary-methods                         html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/Summary-methods.Rd:22: missing file link ‘maxValue’
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/Summary-methods.Rd:22: missing file link ‘minValue’
    addLayer                                html  
    adjacent                                html  
    aggregate                               html  
    alignExtent                             html  
    animate                                 html  
    approxNA                                html  
    area                                    html  
    as.data.frame                           html  
    as.logical-methods                      html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/as.logical-methods.Rd:14: missing file link ‘as.logical’
    as.matrix                               html  
    as.raster                               html  
    atan2                                   html  
    autocor                                 html  
    bands                                   html  
    barplot                                 html  
    bind                                    html  
    blockSize                               html  
    boundaries                              html  
    boxplot                                 html  
    brick                                   html  
    buffer                                  html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/buffer.Rd:35: missing file link ‘pointDistance’
    calc                                    html  
    cellFrom                                html  
    cellStats                               html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/cellStats.Rd:37: missing file link ‘minValue’
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/cellStats.Rd:37: missing file link ‘maxValue’
    cellsFromExtent                         html  
    clamp                                   html  
    clearValues                             html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/clearValues.Rd:21: missing file link ‘values’
    click                                   html  
    clump                                   html  
    cluster                                 html  
    compare                                 html  
    compareCRS                              html  
    contour                                 html  
    coordinates                             html  
    corLocal                                html  
    cover                                   html  
    crop                                    html  
    crosstab                                html  
    cut                                     html  
    cv                                      html  
    dataType                                html  
    datasource                              html  
    density                                 html  
    dimensions                              html  
    direction                               html  
    disaggregate                            html  
    distance                                html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/distance.Rd:31: missing file link ‘pointDistance’
    distanceFromPoints                      html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/distanceFromPoints.Rd:27: missing file link ‘pointDistance’
    draw                                    html  
    drawExtent                              html  
    erase                                   html  
    extend                                  html  
    extension                               html  
    extent                                  html  
    extract                                 html  

    finding level-2 HTML links ... done

    extractIndex                            html  
    extremeValues                           html  
    factor                                  html  
    filename                                html  
    filledContour                           html  
    flip                                    html  
    flowpath                                html  
    focal                                   html  
    focalWeight                             html  
    freq                                    html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/freq.Rd:23: missing file link ‘round’
    gainoffset                              html  
    getData                                 html  
    getValues                               html  
    getValuesBlock                          html  
    getValuesFocal                          html  
    gridDistance                            html  
    hdrFiles                                html  
    headtail                                html  
    hillShade                               html  
    hist                                    html  
    image                                   html  
    iniFile                                 html  
    init                                    html  
    interpolate                             html  
    intersect                               html  
    isLonLat                                html  
    layerStats                              html  
    layerize                                html  
    localFun                                html  
    mask                                    html  
    match                                   html  
    merge                                   html  
    metadata                                html  
    modal                                   html  
    mosaic                                  html  
    movingFun                               html  
    names                                   html  
    ncell                                   html  
    nlayers                                 html  
    origin                                  html  
    overlay                                 html  
    pairs                                   html  
    persp                                   html  
    plot                                    html  
    plotRGB                                 html  
    pointdistance                           html  
    predict                                 html  
    programming                             html  
    projectRaster                           html  
    projection                              html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/projection.Rd:31: missing file link ‘CRS’
    properties                              html  
    quantile                                html  
    raster-package                          html  
    raster                                  html  
    rasterFromCells                         html  
    rasterFromXYZ                           html  
    rasterOptions                           html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/rasterOptions.Rd:40: missing file link ‘canProcessInMemory’
    rasterTmpFile                           html  
    rasterToContour                         html  
    rasterToPoints                          html  
    rasterToPolygons                        html  
    rasterize                               html  
    readAll                                 html  
    reclassify                              html  
    rectify                                 html  
    replacement                             html  
    resample                                html  
    resolution                              html  
    rotate                                  html  
    rotated                                 html  
    round                                   html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/round.Rd:44: missing file link ‘round’
    roundExtent                             html  
    rowFromCell                             html  
    sampleInt                               html  
    sampleRandom                            html  
    sampleRegular                           html  
    sampleStratified                        html  
    saveStack                               html  
    scale                                   html  
    scalebar                                html  
    select                                  html  
    setExtent                               html  
    setMinMax                               html  
    setValues                               html  
    shapefile                               html  
    shift                                   html  
    slopeAspect                             html  
    spEasy                                  html  
    spplot                                  html  
    stack                                   html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/stack.Rd:49: missing file link ‘dropLayer’
    stackApply                              html  
    stackSelect                             html  
    strech                                  html  
    subset                                  html  
Rd warning: /tmp/Rtmp9SwboQ/R.INSTALL62673f8fa8dd/raster/man/subset.Rd:34: missing file link ‘dropLayer’
    substitute                              html  
    summary                                 html  
    symdif                                  html  
    terrain                                 html  
    text                                    html  
    transpose                               html  
    trim                                    html  
    union                                   html  
    unique                                  html  
    unstack                                 html  
    update                                  html  
    validCell                               html  
    validNames                              html  
    weighted.mean                           html  
    which                                   html  
    which.minmax                            html  
    writeFormats                            html  
    writeRaster                             html  
    writeValues                             html  
    xyFromCell                              html  
    zApply                                  html  
    zonal                                   html  
    zoom                                    html  
    zvalues                                 html  
** building package indices
** installing vignettes
** testing if installed package can be loaded
Loading required package: MASS
Loading required package: grDevices
Loading required package: graphics
Loading required package: stats
Loading required package: utils
Error : package ‘sp’ required by ‘raster’ could not be found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/rstudio-server/R/x86_64-redhat-linux-gnu-library/3.1/raster’
Warning in install.packages :
  installation of package ‘raster’ had non-zero exit status
Loading required package: MASS
Loading required package: grDevices
Loading required package: graphics
Loading required package: stats
Loading required package: utils
ERROR: dependency ‘raster’ is not available for package ‘leaflet’
* removing ‘/home/rstudio-server/R/x86_64-redhat-linux-gnu-library/3.1/leaflet’
Warning in install.packages :
  installation of package ‘leaflet’ had non-zero exit status

The downloaded source packages are in
‘/tmp/Rtmpcab8bE/downloaded_packages’
R> 
R> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               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    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] sp_1.1-1       DT_0.0.38      httr_1.0.0     devtools_1.7.0 RJDBC_0.2-5    rJava_0.9-6    DBI_0.3.1      MASS_7.3-39   

loaded via a namespace (and not attached):
[1] digest_0.6.4      grid_3.1.3        htmltools_0.2.6   htmlwidgets_0.3.3 lattice_0.20-30   magrittr_1.5     
[7] R6_2.0.1          stringr_0.6.2     tools_3.1.3      
R> 
########################

Yihui Xie

unread,
Jul 2, 2015, 4:12:07 PM7/2/15
to Joga Rao, shiny-discuss
I'm curious what's wrong with sp. Could you try install.packages('sp')?

Regards,
Yihui
> --
> You received this message because you are subscribed to the Google Groups
> "Shiny - Web Framework for R" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to shiny-discus...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/shiny-discuss/353327ca-4098-4036-b37c-155bedc84a47%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages