Skip to content

Commit

Permalink
use dont test on some examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Nov 20, 2023
1 parent b986a44 commit 05f631c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
2 changes: 2 additions & 0 deletions R/bind-rows-SpatVector.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#' # column is created to link each row to its original data frame
#' bind_spat_rows(v1, v2, .id = "id")
#'
#' \donttest{
#' # Use with sf
#' sfobj <- sf::st_as_sf(v2[1, ])
#'
Expand All @@ -82,6 +83,7 @@
#' SpatVector = v1[1, ], sf = sfobj[1, ],
#' mtcars = mtcars[1, ]
#' ), .id = "source")
#' }
bind_spat_rows <- function(..., .id = NULL) {

Check warning on line 87 in R/bind-rows-SpatVector.R

View workflow job for this annotation

GitHub Actions / Run lintr scanning

file=R/bind-rows-SpatVector.R,line=87,col=1,[cyclocomp_linter] Functions should have cyclomatic complexity of less than 15, this has 20.
dots <- rlang::list2(...)
# Return empty on none
Expand Down
4 changes: 2 additions & 2 deletions R/join-SpatVector.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#'
#' autoplot(left, aes(fill = letter)) + ggtitle("Left Join")
#'
#'
#' \donttest{
#' # Right join
#' right <- v %>% right_join(df)
#' nrow(right)
Expand All @@ -99,7 +99,7 @@
#' # Check with data from df
#' ggplot(full, aes(x, y)) +
#' geom_point(aes(color = letter))
#'
#' }
inner_join.SpatVector <- function(x, y, by = NULL, copy = FALSE,
suffix = c(".x", ".y"), ..., keep = NULL) {
error_spat_join(y)
Expand Down
2 changes: 2 additions & 0 deletions man/bind_rows.SpatVector.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mutate-joins.SpatVector.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions vignettes/articles/INPUBS.bib
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,19 @@ @book{hufkens_handful_2023
urldate = {2023-07-17},
language = {en}
}
@book{moraga_spatial_2023,
@book{moraga2023,
title = {Spatial {Statistics} for {Data} {Science}: {Theory} and {Practice} with {R}},
shorttitle = {Spatial {Statistics} for {Data} {Science}},
author = {Moraga, Paula},
year = 2023,
publisher = {Chapman \& Hall/CRC},
year = 2024,
publisher = {CRC Press},
address = {Boca Raton, FL},
series = {Chapman \& {Hall}/{CRC} data science series},
isbn = {9781032633510},
url = {https://www.paulamoraga.com/book-spatial/},
urldate = {2023-07-17},
abstract = {A book for Spatial Statistics for Data Science with R.},
edition = {First edition},
keywords = {Spatial analysis (Statistics), R (Computer program language)},
language = {en}
}
@misc{isken2023,
Expand Down
11 changes: 7 additions & 4 deletions vignettes/paper.bib
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ @book{moraga2023
title = {Spatial {Statistics} for {Data} {Science}: {Theory} and {Practice} with {R}},
shorttitle = {Spatial {Statistics} for {Data} {Science}},
author = {Moraga, Paula},
year = 2023,
publisher = {Chapman \& Hall/CRC},
year = 2024,
publisher = {CRC Press},
address = {Boca Raton, FL},
series = {Chapman \& {Hall}/{CRC} data science series},
isbn = {9781032633510},
url = {https://www.paulamoraga.com/book-spatial/},
urldate = {2023-07-17},
note = {Online available, publication pending},
abstract = {A book for Spatial Statistics for Data Science with R.},
edition = {First edition},
keywords = {Spatial analysis (Statistics), R (Computer program language)},
language = {en}
}
@manual{R-biomod2,
Expand Down

0 comments on commit 05f631c

Please sign in to comment.