GithubHelp home page GithubHelp logo

absmaps's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

absmaps's Issues

Remove data

Use absmapsdata for data; and save this package to only downloading, converting and compressing.

Remove multi-item load functionality?

Means there is no return() object, and instead objects need to be assign globally which is a bit messy.

Maybe: keep the multi-item download functionality, but remove that functionality for load.

download_absmaps returns a corrupted .zip file

R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C                       LC_TIME=English_Australia.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] absmaps_0.2.1 sf_0.9-5     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.5         rstudioapi_0.11    rmapshaper_0.4.4   magrittr_1.5       hms_0.5.3          units_0.6-7       
 [7] tidyselect_1.1.0   jsonvalidate_1.1.0 R6_2.4.1           rlang_0.4.7        dplyr_1.0.1        tools_3.5.0       
[13] grid_3.5.0         KernSmooth_2.23-15 e1071_1.7-3        DBI_1.1.0          ellipsis_0.3.1     class_7.3-14      
[19] yaml_2.2.1         httpcode_0.3.0     tibble_3.0.3.9000  lifecycle_0.2.0    crayon_1.3.4       readr_1.3.1       
[25] purrr_0.3.4        vctrs_0.3.2.9000   crul_0.9.0         curl_4.3           glue_1.4.1         V8_3.2.0          
[31] compiler_3.5.0     pillar_1.4.6       generics_0.0.2     geojsonlint_0.4.0  classInt_0.4-3     jsonlite_1.7.0    
[37] pkgconfig_2.0.3   

Downloading any shape file using download_absmaps downloads a .zip which can't be opened - either in R or just in Windows.

absmaps::download_absmaps("mesh_sa", saveDirectory = ".", removeSourceFiles = F)
#> Warning in absmaps::download_absmaps("mesh_sa", saveDirectory = ".",
#> removeSourceFiles = F): Note that the compression of mesh block and SA1 files
#> will take AGES (about 10 minutes on my testing. You may well have a better
#> computer).
#> Downloading mesh_sa2016 data from abs.gov.au
#> Warning in utils::unzip(paste0(saveDirectory, "/", area, year, ".zip"), : zip
#> file is corrupt
#> Reading mesh_sa2016 shapefile
#> Error: Cannot open "./mesh_sa2016/MB_2016_SA.shp"; The file doesn't seem to exist.

Created on 2020-08-17 by the reprex package (v0.3.0)

But if I do it manually through utils::download.file() with mode = "wb" then I have no problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.