diff --git a/CITATION.cff b/CITATION.cff index 67ba5fd..8a2fc85 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,9 +8,9 @@ message: 'To cite package "spatsoc" in publications use:' type: software license: GPL-3.0-only title: 'spatsoc: Group Animal Relocation Data by Spatial and Temporal Relationship' -version: 0.2.0 +version: 0.2.1 abstract: Detects spatial and temporal groups in GPS relocations (Robitaille et al. - (2020) ). It can be used to convert GPS relocations + (2019) ). It can be used to convert GPS relocations to gambit-of-the-group format to build proximity-based social networks In addition, the randomizations function provides data-stream randomization methods suitable for GPS data. @@ -69,6 +69,18 @@ references: institution: name: R Foundation for Statistical Computing version: '>= 3.4' +- type: software + title: adehabitatHR + abstract: 'adehabitatHR: Home Range Estimation' + notes: Imports + repository: https://CRAN.R-project.org/package=adehabitatHR + authors: + - family-names: Calenge + given-names: Clement + - family-names: Fortmann-Roe + given-names: contributions from Scott + year: '2023' + version: '>= 0.4.21' - type: software title: data.table abstract: 'data.table: Extension of `data.frame`' @@ -84,51 +96,6 @@ references: email: asrini@pm.me year: '2023' version: '>= 1.10.5' -- type: software - title: sf - abstract: 'sf: Simple Features for R' - notes: Imports - url: https://r-spatial.github.io/sf/ - repository: https://CRAN.R-project.org/package=sf - authors: - - family-names: Pebesma - given-names: Edzer - email: edzer.pebesma@uni-muenster.de - orcid: https://orcid.org/0000-0001-8049-7069 - year: '2023' -- type: software - title: units - abstract: 'units: Measurement Units for R Vectors' - notes: Imports - url: https://r-quantities.github.io/units/ - repository: https://CRAN.R-project.org/package=units - authors: - - family-names: Pebesma - given-names: Edzer - email: edzer.pebesma@uni-muenster.de - orcid: https://orcid.org/0000-0001-8049-7069 - - family-names: Mailund - given-names: Thomas - email: mailund@birc.au.dk - - family-names: Kalinowski - given-names: Tomasz - - family-names: Ucar - given-names: Iñaki - email: iucar@fedoraproject.org - orcid: https://orcid.org/0000-0001-6403-5550 - year: '2023' -- type: software - title: adehabitatHR - abstract: 'adehabitatHR: Home Range Estimation' - notes: Imports - repository: https://CRAN.R-project.org/package=adehabitatHR - authors: - - family-names: Calenge - given-names: Clement - - family-names: Fortmann-Roe - given-names: contributions from Scott - year: '2023' - version: '>= 0.4.21' - type: software title: igraph abstract: 'igraph: Network Analysis and Visualization' @@ -163,17 +130,59 @@ references: orcid: https://orcid.org/0000-0002-1416-3412 year: '2023' - type: software - title: testthat - abstract: 'testthat: Unit Testing for R' + title: sf + abstract: 'sf: Simple Features for R' + notes: Imports + url: https://r-spatial.github.io/sf/ + repository: https://CRAN.R-project.org/package=sf + authors: + - family-names: Pebesma + given-names: Edzer + email: edzer.pebesma@uni-muenster.de + orcid: https://orcid.org/0000-0001-8049-7069 + year: '2023' +- type: software + title: stats + abstract: 'R: A Language and Environment for Statistical Computing' + notes: Imports + authors: + - name: R Core Team + location: + name: Vienna, Austria + year: '2023' + institution: + name: R Foundation for Statistical Computing +- type: software + title: units + abstract: 'units: Measurement Units for R Vectors' + notes: Imports + url: https://r-quantities.github.io/units/ + repository: https://CRAN.R-project.org/package=units + authors: + - family-names: Pebesma + given-names: Edzer + email: edzer.pebesma@uni-muenster.de + orcid: https://orcid.org/0000-0001-8049-7069 + - family-names: Mailund + given-names: Thomas + email: mailund@birc.au.dk + - family-names: Kalinowski + given-names: Tomasz + - family-names: Ucar + given-names: Iñaki + email: iucar@fedoraproject.org + orcid: https://orcid.org/0000-0001-6403-5550 + year: '2023' +- type: software + title: asnipe + abstract: 'asnipe: Animal Social Network Inference and Permutations for Ecologists' notes: Suggests - url: https://testthat.r-lib.org - repository: https://CRAN.R-project.org/package=testthat + repository: https://CRAN.R-project.org/package=asnipe authors: - - family-names: Wickham - given-names: Hadley - email: hadley@posit.co + - family-names: Farine + given-names: Damien R. + email: dfarine@ab.mpg.de year: '2023' - version: '>= 2.1.0' - type: software title: knitr abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R' @@ -186,6 +195,22 @@ references: email: xie@yihui.name orcid: https://orcid.org/0000-0003-0645-5666 year: '2023' +- type: software + title: markdown + abstract: 'markdown: Render Markdown with ''commonmark''' + notes: Suggests + url: https://github.com/rstudio/markdown + repository: https://CRAN.R-project.org/package=markdown + authors: + - family-names: Xie + given-names: Yihui + email: xie@yihui.name + orcid: https://orcid.org/0000-0003-0645-5666 + - family-names: Allaire + given-names: JJ + - family-names: Horner + given-names: Jeffrey + year: '2023' - type: software title: rmarkdown abstract: 'rmarkdown: Dynamic Documents for R' @@ -230,28 +255,14 @@ references: orcid: https://orcid.org/0000-0003-3925-190X year: '2023' - type: software - title: asnipe - abstract: 'asnipe: Animal Social Network Inference and Permutations for Ecologists' - notes: Suggests - repository: https://CRAN.R-project.org/package=asnipe - authors: - - family-names: Farine - given-names: Damien R. - email: dfarine@ab.mpg.de - year: '2023' -- type: software - title: markdown - abstract: 'markdown: Render Markdown with ''commonmark''' + title: testthat + abstract: 'testthat: Unit Testing for R' notes: Suggests - url: https://github.com/rstudio/markdown - repository: https://CRAN.R-project.org/package=markdown + url: https://testthat.r-lib.org + repository: https://CRAN.R-project.org/package=testthat authors: - - family-names: Xie - given-names: Yihui - email: xie@yihui.name - orcid: https://orcid.org/0000-0003-0645-5666 - - family-names: Allaire - given-names: JJ - - family-names: Horner - given-names: Jeffrey + - family-names: Wickham + given-names: Hadley + email: hadley@posit.co year: '2023' + version: '>= 2.1.0' diff --git a/DESCRIPTION b/DESCRIPTION index 41b0b5f..dadb0a4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,43 +1,43 @@ Package: spatsoc Title: Group Animal Relocation Data by Spatial and Temporal Relationship -Version: 0.2.0 -Authors@R: - c(person(given = "Alec L.", - family = "Robitaille", - role = c("aut", "cre"), - email = "robit.alec@gmail.com", - comment = c(ORCID = "0000-0002-4706-1762")), - person(given = "Quinn", - family = "Webber", - role = "aut", - comment = c(ORCID = "0000-0002-0434-9360")), - person(given = "Eric", - family = "Vander Wal", - role = "aut", - comment = c(ORCID = "0000-0002-8534-4317"))) -Description: Detects spatial and temporal groups in GPS relocations - (Robitaille et al. (2020) ). - It can be used to convert GPS relocations to - gambit-of-the-group format to build proximity-based social networks - In addition, the randomizations function provides data-stream - randomization methods suitable for GPS data. -Depends: R (>= 3.4) +Version: 0.2.1 +Authors@R: c( + person("Alec L.", "Robitaille", , "robit.alec@gmail.com", role = c("aut", "cre"), + comment = c(ORCID = "0000-0002-4706-1762")), + person("Quinn", "Webber", role = "aut", + comment = c(ORCID = "0000-0002-0434-9360")), + person("Eric", "Vander Wal", role = "aut", + comment = c(ORCID = "0000-0002-8534-4317")) + ) +Description: Detects spatial and temporal groups in GPS relocations + (Robitaille et al. (2019) ). It can be + used to convert GPS relocations to gambit-of-the-group format to build + proximity-based social networks In addition, the randomizations + function provides data-stream randomization methods suitable for GPS + data. License: GPL-3 | file LICENSE -Encoding: UTF-8 -Imports: data.table (>= 1.10.5), - sf, - units, +URL: https://docs.ropensci.org/spatsoc/, + https://github.com/ropensci/spatsoc +BugReports: https://github.com/ropensci/spatsoc/issues +Depends: + R (>= 3.4) +Imports: adehabitatHR (>= 0.4.21), - igraph + data.table (>= 1.10.5), + igraph, + sf, + stats, + units Suggests: - testthat (>= 2.1.0), + asnipe, knitr, + markdown, rmarkdown, - asnipe, - markdown -SystemRequirements: GDAL (>= 2.0.1), GEOS (>= 3.4.0), PROJ (>= 4.8.0), sqlite3 -RoxygenNote: 7.2.3 -VignetteBuilder: knitr + testthat (>= 2.1.0) +VignetteBuilder: + knitr +Encoding: UTF-8 Roxygen: list(markdown = TRUE) -BugReports: https://github.com/ropensci/spatsoc/issues -URL: https://docs.ropensci.org/spatsoc/, https://github.com/ropensci/spatsoc +RoxygenNote: 7.2.3 +SystemRequirements: GDAL (>= 2.0.1), GEOS (>= 3.4.0), PROJ (>= 4.8.0), + sqlite3 diff --git a/NEWS.md b/NEWS.md index f7a0e9d..141ead8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,9 @@ -# v 0.2.0 +# v 0.2.1 (2023-08-23) + +* fixed CRAN notes [PR 56](https://github.com/ropensci/spatsoc/pull/56) + + +# v 0.2.0 (2023-08-22) * following [R-spatial evolution](https://r-spatial.org/r/2022/04/12/evolution.html), removed dependencies on retired spatial packages ( diff --git a/R/edge_nn.R b/R/edge_nn.R index e2fc7fe..e9c11d0 100644 --- a/R/edge_nn.R +++ b/R/edge_nn.R @@ -69,6 +69,9 @@ #' # Read example data #' DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc")) #' +#' # Select only individuals A, B, C for this example +#' DT <- DT[ID %in% c('A', 'B', 'C')] +#' #' # Cast the character column to POSIXct #' DT[, datetime := as.POSIXct(datetime, tz = 'UTC')] #' diff --git a/R/group_pts.R b/R/group_pts.R index 419062c..cc27fd3 100644 --- a/R/group_pts.R +++ b/R/group_pts.R @@ -73,6 +73,9 @@ #' # Read example data #' DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc")) #' +#' # Select only individuals A, B, C for this example +#' DT <- DT[ID %in% c('A', 'B', 'C')] +#' #' # Cast the character column to POSIXct #' DT[, datetime := as.POSIXct(datetime, tz = 'UTC')] #' diff --git a/R/randomizations.R b/R/randomizations.R index f0affb2..0aa8ece 100644 --- a/R/randomizations.R +++ b/R/randomizations.R @@ -74,7 +74,7 @@ #' @param iterations The number of iterations to randomize #' #' @references -#' \url{https://doi.org/10.1111/2041-210X.12553} +#' #' @export #' #' @family Social network tools @@ -86,6 +86,9 @@ #' # Read example data #' DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc")) #' +#' # Select only individuals A, B, C for this example +#' DT <- DT[ID %in% c('A', 'B', 'C')] +#' #' # Date time columns #' DT[, datetime := as.POSIXct(datetime)] #' DT[, yr := year(datetime)] diff --git a/README.Rmd b/README.Rmd index ecbcd78..f790fe5 100644 --- a/README.Rmd +++ b/README.Rmd @@ -12,11 +12,11 @@ knitr::opts_chunk$set(message = FALSE, # spatsoc -[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) +[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/) [![peer-review](https://badges.ropensci.org/237_status.svg)](https://github.com/ropensci/software-review/issues/237) [![CRAN](https://www.r-pkg.org/badges/version/spatsoc)](https://cran.r-project.org/package=spatsoc) [![cran checks](https://cranchecks.info/badges/summary/spatsoc)](https://cran.r-project.org/web/checks/check_results_spatsoc.html) -[![codecov](https://codecov.io/gh/ropensci/spatsoc/branch/master/graph/badge.svg)](https://codecov.io/gh/ropensci/spatsoc) +[![codecov](https://app.codecov.io/gh/ropensci/spatsoc/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ropensci/spatsoc) [![R-CMD-check](https://github.com/ropensci/spatsoc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/spatsoc/actions/workflows/R-CMD-check.yaml) diff --git a/README.md b/README.md index 7e7bbfc..46a71f0 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ [![Project Status: Active – The project has reached a stable, usable state and is being actively -developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) +developed.](http://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/) [![peer-review](https://badges.ropensci.org/237_status.svg)](https://github.com/ropensci/software-review/issues/237) [![CRAN](https://www.r-pkg.org/badges/version/spatsoc)](https://cran.r-project.org/package=spatsoc) [![cran checks](https://cranchecks.info/badges/summary/spatsoc)](https://cran.r-project.org/web/checks/check_results_spatsoc.html) -[![codecov](https://codecov.io/gh/ropensci/spatsoc/branch/master/graph/badge.svg)](https://codecov.io/gh/ropensci/spatsoc) +[![codecov](https://app.codecov.io/gh/ropensci/spatsoc/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ropensci/spatsoc) [![R-CMD-check](https://github.com/ropensci/spatsoc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/spatsoc/actions/workflows/R-CMD-check.yaml) diff --git a/codemeta.json b/codemeta.json index 9acc47a..60a1365 100644 --- a/codemeta.json +++ b/codemeta.json @@ -2,13 +2,13 @@ "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "@type": "SoftwareSourceCode", "identifier": "spatsoc", - "description": "Detects spatial and temporal groups in GPS relocations (Robitaille et al. (2020) ). It can be used to convert GPS relocations to gambit-of-the-group format to build proximity-based social networks In addition, the randomizations function provides data-stream randomization methods suitable for GPS data. ", + "description": "Detects spatial and temporal groups in GPS relocations (Robitaille et al. (2019) ). It can be used to convert GPS relocations to gambit-of-the-group format to build proximity-based social networks In addition, the randomizations function provides data-stream randomization methods suitable for GPS data.", "name": "spatsoc: Group Animal Relocation Data by Spatial and Temporal Relationship", "relatedLink": ["https://docs.ropensci.org/spatsoc/", "https://CRAN.R-project.org/package=spatsoc"], "codeRepository": "https://github.com/ropensci/spatsoc", "issueTracker": "https://github.com/ropensci/spatsoc/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "0.2.0", + "version": "0.2.1", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", @@ -54,16 +54,15 @@ "softwareSuggestions": [ { "@type": "SoftwareApplication", - "identifier": "testthat", - "name": "testthat", - "version": ">= 2.1.0", + "identifier": "asnipe", + "name": "asnipe", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=testthat" + "sameAs": "https://CRAN.R-project.org/package=asnipe" }, { "@type": "SoftwareApplication", @@ -79,39 +78,40 @@ }, { "@type": "SoftwareApplication", - "identifier": "rmarkdown", - "name": "rmarkdown", + "identifier": "markdown", + "name": "markdown", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=rmarkdown" + "sameAs": "https://CRAN.R-project.org/package=markdown" }, { "@type": "SoftwareApplication", - "identifier": "asnipe", - "name": "asnipe", + "identifier": "rmarkdown", + "name": "rmarkdown", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=asnipe" + "sameAs": "https://CRAN.R-project.org/package=rmarkdown" }, { "@type": "SoftwareApplication", - "identifier": "markdown", - "name": "markdown", + "identifier": "testthat", + "name": "testthat", + "version": ">= 2.1.0", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=markdown" + "sameAs": "https://CRAN.R-project.org/package=testthat" } ], "softwareRequirements": { @@ -123,69 +123,74 @@ }, "2": { "@type": "SoftwareApplication", - "identifier": "data.table", - "name": "data.table", - "version": ">= 1.10.5", + "identifier": "adehabitatHR", + "name": "adehabitatHR", + "version": ">= 0.4.21", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=data.table" + "sameAs": "https://CRAN.R-project.org/package=adehabitatHR" }, "3": { "@type": "SoftwareApplication", - "identifier": "sf", - "name": "sf", + "identifier": "data.table", + "name": "data.table", + "version": ">= 1.10.5", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=sf" + "sameAs": "https://CRAN.R-project.org/package=data.table" }, "4": { "@type": "SoftwareApplication", - "identifier": "units", - "name": "units", + "identifier": "igraph", + "name": "igraph", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=units" + "sameAs": "https://CRAN.R-project.org/package=igraph" }, "5": { "@type": "SoftwareApplication", - "identifier": "adehabitatHR", - "name": "adehabitatHR", - "version": ">= 0.4.21", + "identifier": "sf", + "name": "sf", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=adehabitatHR" + "sameAs": "https://CRAN.R-project.org/package=sf" }, "6": { "@type": "SoftwareApplication", - "identifier": "igraph", - "name": "igraph", + "identifier": "stats", + "name": "stats" + }, + "7": { + "@type": "SoftwareApplication", + "identifier": "units", + "name": "units", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=igraph" + "sameAs": "https://CRAN.R-project.org/package=units" }, - "SystemRequirements": "GDAL (>= 2.0.1), GEOS (>= 3.4.0), PROJ (>= 4.8.0), sqlite3" + "SystemRequirements": "GDAL (>= 2.0.1), GEOS (>= 3.4.0), PROJ (>= 4.8.0),\n sqlite3" }, - "fileSize": "1492.814KB", + "fileSize": "1493.18KB", "citation": [ { "@type": "ScholarlyArticle", @@ -221,8 +226,8 @@ ], "releaseNotes": "https://github.com/ropensci/spatsoc/blob/master/NEWS.md", "readme": "https://github.com/ropensci/spatsoc/blob/main/README.md", - "contIntegration": ["https://codecov.io/gh/ropensci/spatsoc", "https://github.com/ropensci/spatsoc/actions/workflows/R-CMD-check.yaml"], - "developmentStatus": "http://www.repostatus.org/#active", + "contIntegration": ["https://app.codecov.io/gh/ropensci/spatsoc", "https://github.com/ropensci/spatsoc/actions/workflows/R-CMD-check.yaml"], + "developmentStatus": "https://www.repostatus.org/", "review": { "@type": "Review", "url": "https://github.com/ropensci/software-review/issues/237", diff --git a/inst/CITATION b/inst/CITATION index 93ad8f5..50f2a81 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -1,17 +1,22 @@ citHeader("To cite spatsoc in publications use:") -citEntry(entry = "Article", +bibentry( + bibtype = "Article", title = "Conducting social network analysis with animal telemetry data: applications and methods using {spatsoc}", - author = c(as.person("Alec L Robitaille"), - as.person("Quinn MR Webber"), - as.person("Eric Vander Wal")), + author = c( + as.person("Alec L Robitaille"), + as.person("Quinn MR Webber"), + as.person("Eric Vander Wal") + ), journal = "Methods in Ecology and Evolution", year = "2019", url = "https://doi.org/10.1111/2041-210X.13215", textVersion = - paste("Alec L. Robitaille, Quinn M.R. Webber, Eric Vander Wal (2019).", - "Conducting social network analysis with animal telemetry data: applications and methods using spatsoc.", - "Methods in Ecology and Evolution.", - "URL https://doi.org/10.1111/2041-210X.13215") + paste( + "Alec L. Robitaille, Quinn M.R. Webber, Eric Vander Wal (2019).", + "Conducting social network analysis with animal telemetry data: applications and methods using spatsoc.", + "Methods in Ecology and Evolution.", + "URL https://doi.org/10.1111/2041-210X.13215" + ) ) diff --git a/man/edge_nn.Rd b/man/edge_nn.Rd index 4c4d10a..536999d 100644 --- a/man/edge_nn.Rd +++ b/man/edge_nn.Rd @@ -93,6 +93,9 @@ library(data.table) # Read example data DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc")) +# Select only individuals A, B, C for this example +DT <- DT[ID \%in\% c('A', 'B', 'C')] + # Cast the character column to POSIXct DT[, datetime := as.POSIXct(datetime, tz = 'UTC')] diff --git a/man/group_pts.Rd b/man/group_pts.Rd index d38a628..80e3205 100644 --- a/man/group_pts.Rd +++ b/man/group_pts.Rd @@ -88,6 +88,9 @@ library(data.table) # Read example data DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc")) +# Select only individuals A, B, C for this example +DT <- DT[ID \%in\% c('A', 'B', 'C')] + # Cast the character column to POSIXct DT[, datetime := as.POSIXct(datetime, tz = 'UTC')] diff --git a/man/randomizations.Rd b/man/randomizations.Rd index 53f3e55..9861b57 100644 --- a/man/randomizations.Rd +++ b/man/randomizations.Rd @@ -107,6 +107,9 @@ library(data.table) # Read example data DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc")) +# Select only individuals A, B, C for this example +DT <- DT[ID \%in\% c('A', 'B', 'C')] + # Date time columns DT[, datetime := as.POSIXct(datetime)] DT[, yr := year(datetime)] @@ -153,7 +156,7 @@ randTraj <- randomizations( } \references{ -\url{https://doi.org/10.1111/2041-210X.12553} +\url{doi:10.1111/2041-210X.12553} } \seealso{ Other Social network tools: diff --git a/vignettes/faq.Rmd b/vignettes/faq.Rmd index 4e99746..75877c3 100644 --- a/vignettes/faq.Rmd +++ b/vignettes/faq.Rmd @@ -200,10 +200,10 @@ The `projection` argument expects a character string or numeric defining the coordinate reference system to be passed to `sf::st_crs`. For example, for UTM zone 36S (EPSG 32736), the projection argument is `projection = "EPSG:32736"` or `projection = 32736`. -See \url{https://spatialreference.org} -for a list of EPSG codes. Please note, R spatial has followed updates to GDAL -and PROJ for handling projections, see more at -\url{https://r-spatial.org/r/2020/03/17/wkt.html}. +See https://spatialreference.org for a list of EPSG codes. +Please note, R spatial has followed updates to GDAL +and PROJ for handling projections, see more at +https://r-spatial.org/r/2020/03/17/wkt.html. ### sortBy @@ -235,10 +235,10 @@ The `projection` argument expects a character string or numeric defining the coordinate reference system to be passed to `sf::st_crs`. For example, for UTM zone 36S (EPSG 32736), the projection argument is `projection = "EPSG:32736"` or `projection = 32736`. -See \url{https://spatialreference.org} -for a list of EPSG codes. Please note, R spatial has followed updates to GDAL +See https://spatialreference.org for a list of EPSG codes. +Please note, R spatial has followed updates to GDAL and PROJ for handling projections, see more at -\url{https://r-spatial.org/r/2020/03/17/wkt.html}. +https://r-spatial.org/r/2020/03/17/wkt.html. ### hrType and hrParams