Skip to content

Issue with download_directory and tempdir #274

Answered by agila5
jkaucic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! I think you should run Sys.setenv(...) at the beginning of your code. For example,

library(sf)
#> Linking to GEOS 3.11.1, GDAL 3.6.2, PROJ 9.1.1; sf_use_s2() is TRUE
osm_path <- system.file("osm/overpass.osm", package="sf")
st_layers(osm_path, do_count = TRUE)
#> Warning in CPL_get_layers(dsn, options, do_count): GDAL Error 1: Non increasing
#> node id. Use OSM_USE_CUSTOM_INDEXING=NO

#> ...
#>...

#> Warning in CPL_get_layers(dsn, options, do_count): GDAL Error 1: Non increasing
#> node id. Use OSM_USE_CUSTOM_INDEXING=NO

#> Driver: OSM 
#> Available layers:
#>         layer_name       geometry_type features fields crs_name
#> 1           points               Point        0     10   …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jkaucic
Comment options

Answer selected by agila5
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants