-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
262 changed files
with
48,151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
^\.Rproj\.user$ | ||
^\.travis\.yml$ | ||
^cran-comments\.md$ | ||
^revdep$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Platform | ||
|
||
|field |value | | ||
|:--------|:----------------------------| | ||
|version |R version 3.6.3 (2020-02-29) | | ||
|os |Ubuntu 18.04.4 LTS | | ||
|system |x86_64, linux-gnu | | ||
|ui |RStudio | | ||
|language |en_AU:en | | ||
|collate |en_AU.UTF-8 | | ||
|ctype |en_AU.UTF-8 | | ||
|tz |America/Los_Angeles | | ||
|date |2020-03-07 | | ||
|
||
# Dependencies | ||
|
||
|package | old|new |Δ | | ||
|:----------|---:|:-----|:--| | ||
|rapidjsonr | 1.1|1.2.0 |* | | ||
|
||
# Revdeps | ||
|
||
## Failed to check (2) | ||
|
||
|package |version |error |warning |note | | ||
|:---------|:-------|:-----|:-------|:----| | ||
|bigrquery |? | | | | | ||
|mapdeck |? | | | | | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
* using log directory ‘/home/dave/Documents/github/rapidjsonr/revdep/checks/geojsonsf/new/geojsonsf.Rcheck’ | ||
* using R version 3.6.3 (2020-02-29) | ||
* using platform: x86_64-pc-linux-gnu (64-bit) | ||
* using session charset: UTF-8 | ||
* using options ‘--no-manual --no-build-vignettes’ | ||
* checking for file ‘geojsonsf/DESCRIPTION’ ... OK | ||
* checking extension type ... Package | ||
* this is package ‘geojsonsf’ version ‘1.3.0’ | ||
* package encoding: UTF-8 | ||
* checking package namespace information ... OK | ||
* checking package dependencies ... OK | ||
* checking if this is a source package ... OK | ||
* checking if there is a namespace ... OK | ||
* checking for executable files ... OK | ||
* checking for hidden files and directories ... OK | ||
* checking for portable file names ... OK | ||
* checking for sufficient/correct file permissions ... OK | ||
* checking whether package ‘geojsonsf’ can be installed ... OK | ||
* checking installed package size ... NOTE | ||
installed size is 8.7Mb | ||
sub-directories of 1Mb or more: | ||
help 1.3Mb | ||
libs 6.6Mb | ||
* checking package directory ... OK | ||
* checking ‘build’ directory ... OK | ||
* checking DESCRIPTION meta-information ... OK | ||
* checking top-level files ... OK | ||
* checking for left-over files ... OK | ||
* checking index information ... OK | ||
* checking package subdirectories ... OK | ||
* checking R files for non-ASCII characters ... OK | ||
* checking R files for syntax errors ... OK | ||
* checking whether the package can be loaded ... OK | ||
* checking whether the package can be loaded with stated dependencies ... OK | ||
* checking whether the package can be unloaded cleanly ... OK | ||
* checking whether the namespace can be loaded with stated dependencies ... OK | ||
* checking whether the namespace can be unloaded cleanly ... OK | ||
* checking loading without being on the library search path ... OK | ||
* checking dependencies in R code ... OK | ||
* checking S3 generic/method consistency ... OK | ||
* checking replacement functions ... OK | ||
* checking foreign function calls ... OK | ||
* checking R code for possible problems ... OK | ||
* checking Rd files ... OK | ||
* checking Rd metadata ... OK | ||
* checking Rd cross-references ... OK | ||
* checking for missing documentation entries ... OK | ||
* checking for code/documentation mismatches ... OK | ||
* checking Rd \usage sections ... OK | ||
* checking Rd contents ... OK | ||
* checking for unstated dependencies in examples ... OK | ||
* checking contents of ‘data’ directory ... OK | ||
* checking data for non-ASCII characters ... OK | ||
* checking data for ASCII and uncompressed saves ... OK | ||
* checking line endings in C/C++/Fortran sources/headers ... OK | ||
* checking line endings in Makefiles ... OK | ||
* checking compilation flags in Makevars ... OK | ||
* checking for GNU extensions in Makefiles ... OK | ||
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK | ||
* checking compiled code ... OK | ||
* checking installed files from ‘inst/doc’ ... OK | ||
* checking files in ‘vignettes’ ... OK | ||
* checking examples ... OK | ||
* checking for unstated dependencies in ‘tests’ ... OK | ||
* checking tests ... OK | ||
Running ‘testthat.R’ | ||
* checking for unstated dependencies in vignettes ... OK | ||
* checking package vignettes in ‘inst/doc’ ... OK | ||
* checking running R code from vignettes ... NONE | ||
‘geojson-sf-conversions.Rmd’using ‘UTF-8’... OK | ||
* checking re-building of vignette outputs ... SKIPPED | ||
* DONE | ||
Status: 1 NOTE |
502 changes: 502 additions & 0 deletions
502
revdep/checks/geojsonsf/new/geojsonsf.Rcheck/00install.out
Large diffs are not rendered by default.
Oops, something went wrong.
190 changes: 190 additions & 0 deletions
190
revdep/checks/geojsonsf/new/geojsonsf.Rcheck/geojsonsf-Ex.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
pkgname <- "geojsonsf" | ||
source(file.path(R.home("share"), "R", "examples-header.R")) | ||
options(warn = 1) | ||
library('geojsonsf') | ||
|
||
base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') | ||
base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') | ||
cleanEx() | ||
nameEx("df_geojson") | ||
### * df_geojson | ||
|
||
flush(stderr()); flush(stdout()) | ||
|
||
### Name: df_geojson | ||
### Title: df to GeoJSON | ||
### Aliases: df_geojson | ||
|
||
### ** Examples | ||
|
||
|
||
df <- data.frame(lon = c(1:5, NA), lat = c(1:5, NA), id = 1:6, val = letters[1:6]) | ||
df_geojson( df, lon = "lon", lat = "lat") | ||
df_geojson( df, lon = "lon", lat = "lat", atomise = TRUE) | ||
|
||
df <- data.frame(lon = c(1:5, NA), lat = c(1:5, NA) ) | ||
df_geojson( df, lon = "lon", lat = "lat") | ||
df_geojson( df, lon = "lon", lat = "lat", simplify = FALSE) | ||
|
||
df <- data.frame(lon = c(1:5), lat = c(1:5), elevation = c(1:5) ) | ||
df_geojson( df, lon = "lon", lat = "lat", z = "elevation") | ||
df_geojson( df, lon = "lon", lat = "lat", z = "elevation", simplify = FALSE) | ||
|
||
df <- data.frame(lon = c(1:5), lat = c(1:5), elevation = c(1:5), id = 1:5 ) | ||
df_geojson( df, lon = "lon", lat = "lat", z = "elevation") | ||
df_geojson( df, lon = "lon", lat = "lat", z = "elevation", atomise = TRUE) | ||
|
||
|
||
## to sf objects | ||
geo <- df_geojson( df, lon = "lon", lat = "lat", z = "elevation") | ||
sf <- geojson_sf( geo ) | ||
|
||
|
||
|
||
|
||
cleanEx() | ||
nameEx("geojson_sf") | ||
### * geojson_sf | ||
|
||
flush(stderr()); flush(stdout()) | ||
|
||
### Name: geojson_sf | ||
### Title: Geojson to sf | ||
### Aliases: geojson_sf | ||
|
||
### ** Examples | ||
|
||
|
||
## character string of GeoJSON | ||
|
||
## load 'sf' for print methods | ||
# library(sf) | ||
geojson <- '{ "type" : "Point", "coordinates" : [0, 0] }' | ||
geojson_sf(geojson) | ||
|
||
|
||
## Not run: | ||
##D ## GeoJSON at a url | ||
##D myurl <- "http://eric.clst.org/assets/wiki/uploads/Stuff/gz_2010_us_050_00_500k.json" | ||
##D sf <- geojson_sf(myurl) | ||
## End(Not run) | ||
|
||
|
||
|
||
|
||
cleanEx() | ||
nameEx("geojson_sfc") | ||
### * geojson_sfc | ||
|
||
flush(stderr()); flush(stdout()) | ||
|
||
### Name: geojson_sfc | ||
### Title: Geojson to sfc | ||
### Aliases: geojson_sfc | ||
|
||
### ** Examples | ||
|
||
|
||
## character string of GeoJSON | ||
|
||
## load 'sf' for print methods | ||
# library(sf) | ||
geojson <- '{ "type":"Point","coordinates":[0,0] }' | ||
geojson_sfc(geojson) | ||
|
||
geojson <- '[ | ||
{ "type":"Point","coordinates":[0,0]}, | ||
{"type":"LineString","coordinates":[[0,0],[1,1]]} | ||
]' | ||
geojson_sfc( geojson ) | ||
|
||
## Not run: | ||
##D ## GeoJSON at a url | ||
##D myurl <- "http://eric.clst.org/assets/wiki/uploads/Stuff/gz_2010_us_050_00_500k.json" | ||
##D sf <- geojson_sfc(myurl) | ||
## End(Not run) | ||
|
||
|
||
|
||
|
||
cleanEx() | ||
nameEx("geojson_wkt") | ||
### * geojson_wkt | ||
|
||
flush(stderr()); flush(stdout()) | ||
|
||
### Name: geojson_wkt | ||
### Title: Geojson to WKT | ||
### Aliases: geojson_wkt | ||
|
||
### ** Examples | ||
|
||
geojson <- '{ "type" : "Point", "coordinates" : [0, 0] }' | ||
geojson_wkt(geojson) | ||
|
||
|
||
|
||
|
||
cleanEx() | ||
nameEx("sf_geojson") | ||
### * sf_geojson | ||
|
||
flush(stderr()); flush(stdout()) | ||
|
||
### Name: sf_geojson | ||
### Title: sf to GeoJSON | ||
### Aliases: sf_geojson | ||
|
||
### ** Examples | ||
|
||
## Not run: | ||
##D library(sf) | ||
##D sf <- sf::st_sf(geometry = sf::st_sfc(list(sf::st_point(c(0,0)), sf::st_point(c(1,1))))) | ||
##D sf$id <- 1:2 | ||
##D sf_geojson(sf) | ||
##D sf_geojson(sf, atomise = T) | ||
##D | ||
##D ls <- st_linestring(rbind(c(0,0),c(1,1),c(2,1))) | ||
##D mls <- st_multilinestring(list(rbind(c(2,2),c(1,3)), rbind(c(0,0),c(1,1),c(2,1)))) | ||
##D sfc <- st_sfc(ls,mls) | ||
##D sf <- st_sf(sfc) | ||
##D sf_geojson( sf ) | ||
##D sf_geojson( sf, simplify = FALSE ) | ||
##D | ||
## End(Not run) | ||
|
||
|
||
|
||
|
||
cleanEx() | ||
nameEx("sfc_geojson") | ||
### * sfc_geojson | ||
|
||
flush(stderr()); flush(stdout()) | ||
|
||
### Name: sfc_geojson | ||
### Title: sfc to GeoJSON | ||
### Aliases: sfc_geojson | ||
|
||
### ** Examples | ||
|
||
## Not run: | ||
##D library(sf) | ||
##D sf <- sf::st_sfc(list(sf::st_point(c(0,0)), sf::st_point(c(1,1)))) | ||
##D sfc_geojson(sf) | ||
## End(Not run) | ||
|
||
|
||
|
||
### * <FOOTER> | ||
### | ||
cleanEx() | ||
options(digits = 7L) | ||
base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n") | ||
grDevices::dev.off() | ||
### | ||
### Local variables: *** | ||
### mode: outline-minor *** | ||
### outline-regexp: "\\(> \\)?### [*]+" *** | ||
### End: *** | ||
quit('no') |
Oops, something went wrong.