CRAN Package Check Results for Package plotKML

Last updated on 2017-11-24 09:48:05 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5-8 6.88 183.90 190.78 ERROR
r-devel-linux-x86_64-debian-gcc 0.5-8 9.31 228.98 238.28 OK
r-devel-linux-x86_64-fedora-clang 0.5-8 226.07 OK
r-devel-linux-x86_64-fedora-gcc 0.5-8 224.17 OK
r-devel-windows-ix86+x86_64 0.5-8 22.00 192.00 214.00 OK
r-patched-linux-x86_64 0.5-8 10.76 285.84 296.59 OK
r-patched-solaris-x86 0.5-8 348.80 OK
r-release-linux-x86_64 0.5-8 10.19 283.78 293.97 OK
r-release-windows-ix86+x86_64 0.5-8 23.00 193.00 216.00 OK
r-release-osx-x86_64 0.5-8 NOTE
r-oldrel-windows-ix86+x86_64 0.5-8 23.00 211.00 234.00 OK
r-oldrel-osx-x86_64 0.5-8 OK

Check Details

Version: 0.5-8
Check: examples
Result: ERROR
    Running examples in ‘plotKML-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: plotKML-method
    > ### Title: Methods for plotting results of spatial analysis in Google Earth
    > ### Aliases: plotKML-method plotKML plotKML,SpatialPointsDataFrame-method
    > ### plotKML,SpatialLinesDataFrame-method
    > ### plotKML,SpatialPolygonsDataFrame-method
    > ### plotKML,SoilProfileCollection-method
    > ### plotKML,SpatialGridDataFrame-method
    > ### plotKML,SpatialPixelsDataFrame-method plotKML,RasterLayer-method
    > ### plotKML,SpatialPhotoOverlay-method plotKML,STIDF-method
    > ### plotKML,STFDF-method plotKML,STSDF-method plotKML,STTDF-method
    > ### plotKML,SpatialPredictions-method
    > ### plotKML,RasterBrickSimulations-method
    > ### plotKML,SpatialVectorsSimulations-method
    > ### plotKML,SpatialMaxEntOutput-method
    > ### plotKML,RasterBrickTimeSeries-method
    > ### plotKML,SpatialSamplingPattern-method plotKML,list-method
    > ### Keywords: spatial methods
    >
    > ### ** Examples
    >
    > plotKML.env(silent = FALSE, kmz = FALSE)
    $colour_scale_numeric
    [1] "#2C7BB6" "#ABD9E9" "#FFFFBF" "#FDAE61" "#D7191C"
    
    $colour_scale_factor
    [1] "#E41A1C" "#377EB8" "#4DAF4A" "#984EA3" "#FF7F00" "#FFFF33" "#A65628"
    [8] "#F781BF" "#999999"
    
    $colour_scale_svar
    [1] "#FEEDDE" "#FDBE85" "#FD8D3C" "#E6550D" "#A63603"
    
    $ref_CRS
    [1] "+proj=longlat +datum=WGS84"
    
    $NAflag
    [1] -99999
    
    $icon
    [1] "icon3.png"
    
    $LabelScale
    [1] 0.5
    
    $size_range
    [1] 0.25 2.50
    
    $license_url
    [1] "http://creativecommons.org/licenses/by/3.0/"
    
    $metadata_sel
     [1] "idinfo.citation.citeinfo.title"
     [2] "idinfo.descript.abstract"
     [3] "spdoinfo.ptvctinf.sdtsterm.ptvctcnt"
     [4] "idinfo.timeperd.timeinfo.rngdates.begdate"
     [5] "idinfo.timeperd.timeinfo.rngdates.enddate"
     [6] "distinfo.stdorder.digform.digtopt.onlinopt.computer.networka.networkr"
     [7] "idinfo.citation.citeinfo.othercit"
     [8] "idinfo.citation.citeinfo.onlink"
     [9] "idinfo.datacred"
    [10] "distinfo.distrib.cntinfo.cntorgp.cntorg"
    [11] "distinfo.stdorder.digform.digtinfo.formcont"
    [12] "idinfo.native"
    
    $kmz
    [1] FALSE
    
    $kml_xsd
    [1] "http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd"
    
    $kml_url
    [1] "http://www.opengis.net/kml/2.2/"
    
    $kml_gx
    [1] "http://www.google.com/kml/ext/2.2"
    
    $gpx_xsd
    [1] "http://www.topografix.com/GPX/1/1/gpx.xsd"
    
    $fgdc_xsd
    [1] "http://fgdcxml.sourceforge.net/schema/fgdc-std-012-2002/fgdc-std-012-2002.xsd"
    
    $inspire_xsd
    [1] "http://inspire.ec.europa.eu/schemas/common/1.0/common.xsd"
    
    $convert
    [1] ""
    
    $gdalwarp
    [1] ""
    
    $gdal_translate
    [1] ""
    
    $python
    [1] ""
    
    $home_url
    [1] "http://plotkml.r-forge.r-project.org/"
    
    > ## -------------- SpatialPointsDataFrame --------- ##
    > library(sp)
    > library(rgdal)
    rgdal: version: 1.2-16, (SVN revision 701)
     Geospatial Data Abstraction Library extensions to R successfully loaded
     Loaded GDAL runtime: GDAL 2.2.2, released 2017/09/15
     Path to GDAL shared files: /usr/share/gdal/2.2
     GDAL binary built with GEOS: TRUE
     Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493]
     Path to PROJ.4 shared files: (autodetected)
     Linking to sp version: 1.2-5
    > data(eberg)
    > coordinates(eberg) <- ~X+Y
    > proj4string(eberg) <- CRS("+init=epsg:31467")
    > ## subset to 20 percent:
    > eberg <- eberg[runif(nrow(eberg))<.1,]
    > ## Not run:
    > ##D ## bubble type plot:
    > ##D plotKML(eberg["CLYMHT_A"])
    > ##D plotKML(eberg["CLYMHT_A"], colour_scale=rep("#FFFF00", 2), points_names="")
    > ## End(Not run)
    > ## plot points with a legend:
    > shape = "http://maps.google.com/mapfiles/kml/pal2/icon18.png"
    > kml_open("eberg_CLYMHT_A.kml")
    KML file opened for writing...
    > kml_layer(eberg["CLYMHT_A"], colour=CLYMHT_A, z.lim=c(20,60),
    + colour_scale=SAGA_pal[[1]], shape=shape, points_names="")
    Reprojecting to +proj=longlat +datum=WGS84 ...
    Writing to KML...
    > kml_legend.bar(x=eberg$CLYMHT_A, legend.file="kml_legend.png",
    + legend.pal=SAGA_pal[[1]], z.lim=c(20,60))
    pdf
     2
    > kml_screen(image.file="kml_legend.png")
    > kml_close("eberg_CLYMHT_A.kml")
    Closing eberg_CLYMHT_A.kml
    >
    > ## -------------- SpatialLinesDataFrame --------- ##
    > data(eberg_contours)
    > ## Not run:
    > ##D plotKML(eberg_contours)
    > ##D ## plot contour lines with actual altitudes:
    > ##D plotKML(eberg_contours, colour=Z, altitude=Z)
    > ## End(Not run)
    >
    > ## -------------- SpatialPolygonsDataFrame --------- ##
    > data(eberg_zones)
    > ## Not run:
    > ##D plotKML(eberg_zones["ZONES"])
    > ##D ## add altitude:
    > ##D zmin = 230
    > ##D plotKML(eberg_zones["ZONES"], altitude=zmin+runif(length(eberg_zones))*500)
    > ## End(Not run)
    >
    > ## -------------- SpatialPixelsDataFrame --------- ##
    > library(rgdal)
    > library(raster)
    > data(eberg_grid)
    > gridded(eberg_grid) <- ~x+y
    > proj4string(eberg_grid) <- CRS("+init=epsg:31467")
    > TWI <- reproject(eberg_grid["TWISRT6"])
    Reprojecting to +proj=longlat +datum=WGS84 ...
    > data(SAGA_pal)
    > ## Not run:
    > ##D ## set limits manually (increase resolution):
    > ##D plotKML(TWI, colour_scale = SAGA_pal[[1]])
    > ##D plotKML(TWI, z.lim=c(12,20), colour_scale = SAGA_pal[[1]])
    > ## End(Not run)
    > ## categorical data:
    > eberg_grid$LNCCOR6 <- as.factor(paste(eberg_grid$LNCCOR6))
    > levels(eberg_grid$LNCCOR6)
    [1] "112 - Discontinuous urban fabric" "211 - Non-irrigated arable land"
    [3] "231 - Pastures" "242 - Complex cultivation patterns"
    [5] "311 - Broad-leaved forest" "312 - Coniferous forest"
    [7] "313 - Mixed forest"
    > data(worldgrids_pal)
    > ## attr(worldgrids_pal["corine2k"][[1]], "names")
    > pal = as.character(worldgrids_pal["corine2k"][[1]][c(1,11,13,14,16,17,18)])
    > LNCCOR6 <- reproject(eberg_grid["LNCCOR6"])
    Reprojecting to +proj=longlat +datum=WGS84 ...
    > ## Not run:
    > ##D plotKML(LNCCOR6, colour_scale=pal)
    > ## End(Not run)
    >
    > ## -------------- SpatialPhotoOverlay --------- ##
    > ## Not run:
    > ##D library(RCurl)
    > ##D imagename = "Soil_monolith.jpg"
    > ##D urlExists = url.exists("http://commons.wikimedia.org")
    > ##D if(urlExists){
    > ##D x1 <- getWikiMedia.ImageInfo(imagename)
    > ##D sm <- spPhoto(filename = x1$url$url, exif.info = x1$metadata)
    > ##D # str(sm)
    > ##D plotKML(sm)
    > ##D }
    > ## End(Not run)
    >
    > ## -------------- SoilProfileCollection --------- ##
    > library(aqp)
    This is aqp 1.15
    
    Attaching package: ‘aqp’
    
    The following objects are masked from ‘package:raster’:
    
     metadata, metadata<-
    
    > library(plyr)
    > ## sample profile from Nigeria:
    > lon = 3.90; lat = 7.50; id = "ISRIC:NG0017"; FAO1988 = "LXp"
    > top = c(0, 18, 36, 65, 87, 127)
    > bottom = c(18, 36, 65, 87, 127, 181)
    > ORCDRC = c(18.4, 4.4, 3.6, 3.6, 3.2, 1.2)
    > hue = c("7.5YR", "7.5YR", "2.5YR", "5YR", "5YR", "10YR")
    > value = c(3, 4, 5, 5, 5, 7); chroma = c(2, 4, 6, 8, 4, 3)
    > ## prepare a SoilProfileCollection:
    > prof1 <- join(data.frame(id, top, bottom, ORCDRC, hue, value, chroma),
    + data.frame(id, lon, lat, FAO1988), type='inner')
    Joining by: id
    > prof1$soil_color <- with(prof1, munsell2rgb(hue, value, chroma))
    Notice: converting hue to character
    > depths(prof1) <- id ~ top + bottom
    Warning: converting IDs from factor to character
    > site(prof1) <- ~ lon + lat + FAO1988
    > coordinates(prof1) <- ~ lon + lat
    > proj4string(prof1) <- CRS("+proj=longlat +datum=WGS84")
    > prof1
    Object of class SoilProfileCollection
    Number of profiles: 1
    
    Horizon attributes:
     id top bottom ORCDRC hue value chroma soil_color
    1 ISRIC:NG0017 0 18 18.4 7.5YR 3 2 #584537FF
    2 ISRIC:NG0017 18 36 4.4 7.5YR 4 4 #7E5A3BFF
    3 ISRIC:NG0017 36 65 3.6 2.5YR 5 6 #A96C4FFF
    4 ISRIC:NG0017 65 87 3.6 5YR 5 8 #B06A32FF
    5 ISRIC:NG0017 87 127 3.2 5YR 5 4 #9A7359FF
    6 ISRIC:NG0017 127 181 1.2 10YR 7 3 #C4AC8CFF
    
    Sampling site attributes:
     id FAO1988
    1 ISRIC:NG0017 LXp
    
    Spatial Data:
     min max
    lon 3.9 3.9
    lat 7.5 7.5
    [1] "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0"
    > ## Not run:
    > ##D plotKML(prof1, var.name="ORCDRC", color.name="soil_color")
    > ## End(Not run)
    >
    > ## -------------- STIDF --------- ##
    > library(sp)
    > library(spacetime)
    > ## daily temperatures for Croatia:
    > data(HRtemp08)
    > ## format the time column:
    > HRtemp08$ctime <- as.POSIXct(HRtemp08$DATE, format="%Y-%m-%dT%H:%M:%SZ")
    > ## create a STIDF object:
    > sp <- SpatialPoints(HRtemp08[,c("Lon","Lat")])
    > proj4string(sp) <- CRS("+proj=longlat +datum=WGS84")
    > HRtemp08.st <- STIDF(sp, time = HRtemp08$ctime, data = HRtemp08[,c("NAME","TEMP")])
    > ## subset to first 500 records:
    > HRtemp08_jan <- HRtemp08.st[1:500]
    > str(HRtemp08_jan)
    Formal class 'STIDF' [package "spacetime"] with 4 slots
     ..@ data :'data.frame': 500 obs. of 2 variables:
     .. ..$ NAME: Factor w/ 158 levels "<c3><88>akovec",..: 17 50 81 83 84 82 85 86 88 89 ...
     .. ..$ TEMP: num [1:500] -3.5 -1.25 -4 NA 2.58 ...
     ..@ sp :Formal class 'SpatialPoints' [package "sp"] with 3 slots
     .. .. ..@ coords : num [1:500, 1:2] 17.2 15.6 17.4 15.5 13.6 ...
     .. .. .. ..- attr(*, "dimnames")=List of 2
     .. .. .. .. ..$ : NULL
     .. .. .. .. ..$ : chr [1:2] "Lon" "Lat"
     .. .. ..@ bbox : num [1:2, 1:2] 13.6 42.4 19.4 46.4
     .. .. .. ..- attr(*, "dimnames")=List of 2
     .. .. .. .. ..$ : chr [1:2] "Lon" "Lat"
     .. .. .. .. ..$ : chr [1:2] "min" "max"
     .. .. ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slot
     .. .. .. .. ..@ projargs: chr "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0"
     ..@ time :An ‘xts’ object on 2008-01-01 01:00:00/2008-01-04 01:00:00 containing:
     Data: int [1:500, 1] 298 433 916 1198 1683 2010 2526 2932 2966 3327 ...
     - attr(*, "dimnames")=List of 2
     ..$ : NULL
     ..$ : chr "timeIndex"
     Indexed by objects of class: [POSIXct,POSIXt] TZ:
     xts Attributes:
     NULL
     ..@ endTime: POSIXct[1:500], format: "2008-01-01 01:00:00" "2008-01-01 01:00:00" ...
    > ## Not run:
    > ##D plotKML(HRtemp08_jan[,,"TEMP"], LabelScale = .4)
    > ## End(Not run)
    >
    > ## foot-and-mouth disease data:
    > data(fmd)
    > fmd0 <- data.frame(fmd)
    > coordinates(fmd0) <- c("X", "Y")
    > proj4string(fmd0) <- CRS("+init=epsg:27700")
    > fmd_sp <- as(fmd0, "SpatialPoints")
    > dates <- as.Date("2001-02-18")+fmd0$ReportedDay
    > library(spacetime)
    > fmd_ST <- STIDF(fmd_sp, dates, data.frame(ReportedDay=fmd0$ReportedDay))
    > data(SAGA_pal)
    > ## Not run:
    > ##D plotKML(fmd_ST, colour_scale=SAGA_pal[[1]])
    > ## End(Not run)
    >
    > ## -------------- STFDF --------- ##
    >
    > ## results of krigeST:
    > library(gstat)
    > library(sp)
    > library(spacetime)
    > library(raster)
    > ## define space-time variogram
    > sumMetricVgm <- vgmST("sumMetric",
    + space=vgm( 4.4, "Lin", 196.6, 3),
    + time =vgm( 2.2, "Lin", 1.1, 2),
    + joint=vgm(34.6, "Exp", 136.6, 12),
    + stAni=51.7)
    > ## example from the gstat package:
    > data(air)
    > rural = STFDF(stations, dates, data.frame(PM10 = as.vector(air)))
    > rr <- rural[,"2005-06-01/2005-06-03"]
    
     *** caught segfault ***
    address 0x2, cause 'memory not mapped'
    
    Traceback:
     1: .External("mergeXts", all = all[1:2], fill = fill, setclass = setclass, symnames = symnames, suffixes = suffixes, retside = retside, env = new.env(), tzone = tzone, ..., PACKAGE = "xts")
     2: merge.xts(..., all = all, fill = fill, suffixes = suffixes)
     3: cbind(deparse.level, ...)
     4: cbind(x@time, 1:nrow(x@time))
     5: rural[, "2005-06-01/2005-06-03"]
     6: rural[, "2005-06-01/2005-06-03"]
    An irrecoverable exception occurred. R is aborting now ...
    Segmentation fault
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5-8
Check: re-building of vignette outputs
Result: NOTE
    Error in re-building vignettes:
     ...
    Saving an object of class 'gstatModel'...
    Subsetting observations to fit the prediction domain in 2D...
    Generating predictions using the trend model (RK method)...
    Running 5-fold cross validation using 'krige.cv'...
    Creating an object of class "SpatialPredictions"
    KML file opened for writing...
    Reprojecting to +proj=longlat +datum=WGS84 ...
    Writing to KML...
    Closing fmd_ST.kml
    Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
     Running 'texi2dvi' on 'jss1079.tex' failed.
    LaTeX errors:
    ! LaTeX Error: File `multirow.sty' not found.
    
    Type X to quit or <RETURN> to proceed,
    or enter new name. (Default extension: sty)
    
    ! Emergency stop.
    <read *>
    
    l.53 \usepackage
     {hyperref}^^M
    ! ==> Fatal error occurred, no output PDF file produced!
    Calls: buildVignettes -> texi2pdf -> texi2dvi
    Execution halted
Flavor: r-release-osx-x86_64