[OSGeoLive] #2145: R Jupyter demo Fails

OSGeoLive trac_osgeolive at osgeo.org
Sun Jun 23 07:16:41 PDT 2019


#2145: R Jupyter demo Fails
-----------------------+---------------------------
 Reporter:  darkblueb  |      Owner:  osgeolive@…
     Type:  defect     |     Status:  new
 Priority:  critical   |  Milestone:  OSGeoLive13.0
Component:  OSGeoLive  |   Keywords:  R, sf
-----------------------+---------------------------
 Steps to reproduce:

 * boot Live13 a2
 * start the Jupyter system
 * run the R Notebook
 * execute each cell

 {{{
 library('sf') #SimpleFeature Library to handle shapefiles

   Linking to GEOS 3.7.0, GDAL 2.4.0, PROJ 5.2.0

   Package: sf
   Version: 0.7-4
   Title: Simple Features for R

 }}}

 The demo dot-shp file loads properly, but the first call to display data
 fails.

 {{{
 ERROR while rich displaying an object: Error in loadNamespace(name): there
 is no package called ‘geojsonio’

 Traceback:
 1. FUN(X[[i]], ...)
 2. tryCatch(withCallingHandlers({
  .     if (!mime %in% names(repr::mime2repr))
  .         stop("No repr_* for mimetype ", mime, " in repr::mime2repr")
  .     rpr <- repr::mime2repr[[mime]](obj)
  .     if (is.null(rpr))
  .         return(NULL)
  .     prepare_content(is.raw(rpr), rpr)
  . }, error = error_handler), error = outer_handler)
 3. tryCatchList(expr, classes, parentenv, handlers)
 4. tryCatchOne(expr, names, parentenv, handlers[[1L]])
 5. doTryCatch(return(expr), name, parentenv, handler)
 6. withCallingHandlers({
  .     if (!mime %in% names(repr::mime2repr))
  .         stop("No repr_* for mimetype ", mime, " in repr::mime2repr")
  .     rpr <- repr::mime2repr[[mime]](obj)
  .     if (is.null(rpr))
  .         return(NULL)
  .     prepare_content(is.raw(rpr), rpr)
  . }, error = error_handler)
 7. repr::mime2repr[[mime]](obj)
 8. repr_geojson.sf(obj)
 9. repr_geojson(geojsonio::geojson_list(obj), ...)
 10. geojsonio::geojson_list
 11. getExportedValue(pkg, name)
 12. asNamespace(ns)
 13. getNamespace(ns)
 14. tryCatch(loadNamespace(name), error = function(e) stop(e))
 15. tryCatchList(expr, classes, parentenv, handlers)
 16. tryCatchOne(expr, names, parentenv, handlers[[1L]])
 17. value[[3L]](cond)
 }}}


 An attempt to separately load `geojsonio` fails in multiple ways

 {{{
 > install.packages('geojsonio')
 Installing package into ‘/usr/local/lib/R/site-library’
 (as ‘lib’ is unspecified)
 also installing the dependencies ‘hms’, ‘BH’, ‘protolite’, ‘rgdal’,
 ‘rgeos’, ‘maptools’, ‘readr’, ‘V8’, ‘geojson’, ‘jqr’
 ...

 trying URL 'https://cloud.r-project.org/src/contrib/geojson_0.3.2.tar.gz'
 ...
 trying URL
 'https://cloud.r-project.org/src/contrib/geojsonio_0.7.0.tar.gz'
 ...
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2145>
OSGeoLive <http://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list