kadyb / rgugik

Download datasets from Polish Head Office of Geodesy and Cartography
https://kadyb.github.io/rgugik/
Other
33 stars 4 forks source link

Can't load data inside "models3D_download" fun #8

Closed kadyb closed 4 years ago

kadyb commented 4 years ago
library("rgugik")
models3D_download(county = "Toruń")
#> Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
#> In addition: Warning message:
#> In readChar(con, 5L, useBytes = TRUE) :
#>  cannot open compressed file 'data/TERYT_county.rda', probable reason 'No such file or directory'

in line: load("data/TERYT_county.rda")

Nowosad commented 4 years ago

You should not (probably even cannot) use load inside of the function. The TERYT_country should be available inside of the functions without using load().

Nowosad commented 4 years ago

I removed it in the recent commit.

kadyb commented 4 years ago

Now we have rgugik::TERYT_county to read internal data.