Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Aug 23, 2023
2 parents 0dc0ef2 + dec0509 commit 1d11bff
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 15 deletions.
8 changes: 6 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: extractOz
Title: Extract Australian Soil, Weather and GRDC Agro-ecological Zone Information from GPS Points
Version: 1.0.0.9000
Version: 1.1.0
Authors@R: c(person(given = "Adam H.", family = "Sparks",
email = "adam.sparks@dpird.wa.gov.au",
role = c("aut", "cre"),
Expand All @@ -15,7 +15,8 @@ Authors@R: c(person(given = "Adam H.", family = "Sparks",
Description: Extracts point data for a given GPS coordinate that includes major
soil order, weather and GRDC agro-ecological zone information at that point.
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Roxygen: list(markdown = TRUE, roclets = c("collate", "namespace", "rd",
"roxyglobals::global_roclet"))
RoxygenNote: 7.2.3
Imports:
curl,
Expand All @@ -32,6 +33,7 @@ Suggests:
knitr,
readr,
rmarkdown,
roxyglobals,
spelling,
testthat (>= 3.0.0),
tidyverse,
Expand All @@ -48,3 +50,5 @@ X-schema.org-isPartOf: https://www.dpird.wa.gov.au/
URL: https://github.com/DPIRD-FSI/extractOz
BugReports: https://github.com/DPIRD-FSI/extractOz/issues
LazyData: true
Config/roxyglobals/filename: generated-globals.R
Config/roxyglobals/unique: FALSE
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# extractOz 1.0.0.9000
# extractOz 1.1.0

## Major changes

Expand All @@ -15,6 +15,8 @@

- Internal GRDC Agroecoregions object uses the same simplified GPKG and is saved using "xz" compression to save more file space.

- Use {roxyglobals} for tracking global objects in the package in a tidier fashion.

# extractOz 1.0.0

## Major changes
Expand Down
2 changes: 1 addition & 1 deletion R/df_to_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#'
#' @return A `list` object suitable for use in any of the `extract` functions
#' in \pkg{extractOz}.
#'
#' @autoglobal
#' @export
#'
df_to_list <- function(x, names = 1, lonlat = 2:3) {
Expand Down
2 changes: 1 addition & 1 deletion R/extract_ae_zone.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' )
#'
#' extract_ae_zone(x = locs)
#'
#' @autoglobal
#' @export

extract_ae_zone <- function(x) {
Expand Down
1 change: 1 addition & 0 deletions R/extract_area.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#' )
#'
#' extract_area(x = locs, spatial = aez, area = "AEZ")
#' @autoglobal
#' @export

extract_area <- function(x, spatial, area) {
Expand Down
2 changes: 1 addition & 1 deletion R/extract_data_drill.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
#' @family SILO
#'
#' @author Adam H. Sparks, \email{adam.sparks@@dpird.wa.gov.au}
#'
#' @autoglobal
#' @export

extract_data_drill <- function(x,
Expand Down
1 change: 1 addition & 0 deletions R/extract_patched_point.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
#' @family weather data
#' @family SILO
#'
#' @autoglobal
#' @export
#'
extract_patched_point <- function(x,
Expand Down
1 change: 1 addition & 0 deletions R/extract_power.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
#'
#' @family weather data
#'
#' @autoglobal
#' @export
extract_power <- function(x,
start_date,
Expand Down
11 changes: 11 additions & 0 deletions R/generated-globals.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Generated by roxyglobals: do not edit by hand

utils::globalVariables(c(
"aez", # <extract_ae_zone>
"location", # <extract_data_drill>
"location", # <extract_patched_point>
"owner", # <extract_patched_point>
"station_code", # <extract_patched_point>
"ind", # <extract_patched_point>
NULL
))
2 changes: 1 addition & 1 deletion R/globals.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CRAN NOTE avoidance
utils::globalVariables(c("aez",
"daas",
"daas",
"location",
"ind",
"owner",
Expand Down
5 changes: 2 additions & 3 deletions R/internal_functions.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@



#' Add %notin% function
#'
#' Negates `%in%` for easier (mis)matching.
Expand Down Expand Up @@ -34,7 +32,7 @@
#' .create_dt(x = locs)
#'
#' @author Adam H. Sparks, \email{adam,sparks@@dpird.wa.gov.au}
#'
#' @autoglobal
#' @noRd
.create_dt <- function(x) {
x <-
Expand All @@ -47,6 +45,7 @@
#' @param longitude user provided numeric value as decimal degrees
#' @param latitude user provided numeric value as decimal degrees
#' @noRd
#' @autoglobal
#' @return invisible `NULL`, called for its side-effects

.check_lonlat <- function(x) {
Expand Down
25 changes: 21 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/DPIRD-FSI/extractOz",
"issueTracker": "https://github.com/DPIRD-FSI/extractOz/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "1.0.0.9000",
"version": "1.1.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -85,6 +85,18 @@
},
"sameAs": "https://CRAN.R-project.org/package=rmarkdown"
},
{
"@type": "SoftwareApplication",
"identifier": "roxyglobals",
"name": "roxyglobals",
"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=roxyglobals"
},
{
"@type": "SoftwareApplication",
"identifier": "spelling",
Expand Down Expand Up @@ -215,16 +227,21 @@
"sameAs": "https://CRAN.R-project.org/package=sf"
},
"8": {
"@type": "SoftwareApplication",
"identifier": "stats",
"name": "stats"
},
"9": {
"@type": "SoftwareApplication",
"identifier": "utils",
"name": "utils"
},
"9": {
"10": {
"@type": "SoftwareApplication",
"identifier": "weatherOz",
"name": "weatherOz"
},
"10": {
"11": {
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
Expand All @@ -235,7 +252,7 @@
"applicationCategory": "Tools",
"isPartOf": "https://www.dpird.wa.gov.au/",
"keywords": ["agriculture", "Australia", "agroecology", "soils", "weather", "weather-data", "soils-data", "agriculture-research", "r-package", "agriculture-data", "australia"],
"fileSize": "1420.245KB",
"fileSize": "1347.764KB",
"releaseNotes": "https://github.com/DPIRD-FSI/extractOz/blob/master/NEWS.md",
"readme": "https://github.com/DPIRD-FSI/extractOz/blob/main/README.md",
"contIntegration": ["https://github.com/DPIRD-FSI/extractOz/actions", "https://codecov.io/gh/DPIRD-FSI/extractOz"],
Expand Down
1 change: 0 additions & 1 deletion man/extract_ae_zone.Rd

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

0 comments on commit 1d11bff

Please sign in to comment.