geocompx / geocompkg Goto Github PK
View Code? Open in Web Editor NEWA metapackage containing vignettes used in the book Geocomputation with R
Home Page: https://geocompx.github.io/geocompkg/
License: Other
A metapackage containing vignettes used in the book Geocomputation with R
Home Page: https://geocompx.github.io/geocompkg/
License: Other
https://www.zensus2011.de don't provide data for Geomarketing chapter
Thanks for reading your book.
We still rely on 4 packages not on CRAN:
mlr-org/mlr3extralearners,
mlr-org/mlr3spatiotempcv,
mlr-org/mlr3proba,
paleolimbot/qgisprocess,
nowosad/spDataLarge,
An issue associated with this is that if you run
remotes::install_github("geocompr/geocompkg", dependencies = TRUE)
On the majority of computers that have not been authenticated with GitHub, you may get an error message along the lines of the following, if other packages have been installed from GitHub:
Downloading GitHub repo mlr-org/mlr3proba@HEAD
Downloading GitHub repo alan-turing-institute/distr6@HEAD
Error: Failed to install 'unknown package' from GitHub:
Failed to install 'unknown package' from GitHub:
Failed to install 'unknown package' from GitHub:
Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 51.154.68.67. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Rate limit remaining: 0/60
Rate limit reset at: 2023-05-21 12:08:42 UTC
To increase your GitHub API rate limit
- Use `usethis::create_github_token()` to create a Personal Access Token.
- Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.
This is not good for reproducibility, especially for beginners. Is there any way we can move away from dependency on any of these GitHub packages or can we help their maintainers submit to CRAN?
Update pipes (and more, if needed) in https://geocompr.github.io/geocompkg/articles/linevia.html
Also see geocompx/geocompr#835
Heads-up @Nowosad, just noticed this is failing on the universe builds: https://github.com/r-universe/geocompr/runs/3383708750?check_suite_focus=true and maybe on actions too...
As reported by @Nowosad, see here: https://geocompr.github.io/geocompkg/articles/maps.html
See here: https://travis-ci.org/geocompr/geocompkg/jobs/559948483#L9220
SUMMARY: processing the following files failed:
‘cast.Rmd’ ‘solutions13.Rmd’
Any ideas @Nowosad ?
@Robinlovelace @jannes-m would it be possible to replace the tidyverse package in the DESCRIPTION (https://github.com/geocompr/geocompkg/blob/d4af9b8c3dca6bf4f9e28083f1d71646f0cf9d9c/DESCRIPTION#L54) with a set of packages that we actually use? What do you thing?
See geocompx/geocompr#779 we're switching...
@Robinlovelace do you have any idea what is wrong here? - https://github.com/geocompr/geocompkg/actions/runs/237323887
Hi! Not sure where to put the pull request for the solutions.html
Code as in solutions:
canterbury = nz %>% filter(Name == "Canterbury Region")
canterbury_height = nz_height[canterbury, ]
nrow(canterbury_height) # answer: 61
Problem:
Canterbury Region" %in% nz$Name
[1] FALSE
"Canterbury" %in% nz$Name
[1] TRUE
Suggested solution:
canterbury = nz %>% filter(Name == "Canterbury")
canterbury_height = nz_height[canterbury, ]
nrow(canterbury_height) # answer: 70
Complete novice in geocomputation and trying to work through examples in the book.
I'm trying to recreate the figure 2.5 - I'm not able to get the longitude and latitude "lines".
library(sf)
#> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
library(spData)
cex <- sqrt(world$pop)/1e4
world_cents <- st_centroid(world, of_largest = TRUE)
#> Warning in st_centroid.sf(world, of_largest = TRUE): st_centroid assumes
#> attributes are constant over geometries of x
#> Warning in st_centroid.sfc(st_geometry(x), of_largest_polygon =
#> of_largest_polygon): st_centroid does not give correct centroids for
#> longitude/latitude data
plot(world["continent"], reset = FALSE)
plot(st_geometry(world_cents), add = TRUE, cex = cex)
sessionInfo()
#> R version 3.6.1 (2019-07-05)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 16299)
#>
#> Matrix products: default
#>
#> locale:
#> [1] LC_COLLATE=English_United States.1252
#> [2] LC_CTYPE=English_United States.1252
#> [3] LC_MONETARY=English_United States.1252
#> [4] LC_NUMERIC=C
#> [5] LC_TIME=English_United States.1252
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] spData_0.3.2 sf_0.8-0
#>
#> loaded via a namespace (and not attached):
#> [1] Rcpp_1.0.2 class_7.3-15 digest_0.6.21
#> [4] spDataLarge_0.3.1 grid_3.6.1 DBI_1.0.0
#> [7] magrittr_1.5 units_0.6-5 e1071_1.7-2
#> [10] evaluate_0.14 KernSmooth_2.23-15 highr_0.8
#> [13] rlang_0.4.0 stringi_1.4.3 rmarkdown_1.16
#> [16] tools_3.6.1 stringr_1.4.0 xfun_0.10
#> [19] yaml_2.2.0 compiler_3.6.1 classInt_0.4-1
#> [22] htmltools_0.4.0 knitr_1.25
Created on 2019-10-10 by the reprex package (v0.3.0)
From @Nowosad: https://github.com/geocompr/geocompkg/runs/881351939?check_suite_focus=true - we need to update the solutions vignettes
I've been experimenting with this and have some examples:
https://nostalgic-murdock-528b70.netlify.app/2021/01/21/adeeb/map.gif
and
Unfortunately there seem to be severe limitations on what is currently possible in this space: no easy way to add a time slider as far as I can tell. Heads-up @tim-salabim just in case but I plan to write a post showing how to get the basics going and doing a bit of a 'call for developer' time to solve what should be a fairly straightforward problem. On a related note, it's pretty amazing to see what is possible in animated web mapping these days:
Source: https://avs.auto/demo/index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.