Skip to content

Commit b703a23

Browse files
committed
Merge branch 'main' of github.com:ropensci/parzer
2 parents f429c11 + 27d897b commit b703a23

22 files changed

+180
-73
lines changed

‎.github/workflows/check-standard.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
R_KEEP_PKG_SOURCE: yes
3434

3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v6
3737

3838
- uses: r-lib/actions/setup-pandoc@v2
3939

‎CRAN-SUBMISSION‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 0.4.3
2-
Date: 2025-05-29 14:46:46 UTC
3-
SHA: 10a8aa68bea8b18a69cc99326e949c5beb144afd
1+
Version: 0.4.4
2+
Date: 2025-07-23 12:38:35 UTC
3+
SHA: 11f3693d2f3ce60c26146e771d0dd17e7385d318

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description: Parse messy geographic coordinates from various character formats
88
minutes, or seconds; add and subtract degrees, minutes,
99
and seconds. C++ code herein originally inspired from code
1010
written by Jeffrey D. Bogan, but then completely re-written.
11-
Version: 0.4.3
11+
Version: 0.4.4
1212
Authors@R: c(
1313
person("Scott", "Chamberlain", role = "aut",
1414
email = "[email protected]",

‎NEWS.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
parzer 0.4.4
2+
============
3+
4+
### BUG FIX
5+
6+
* Fixed a bug in longitude conversion where "74E5423" would be converted to NA while "74W5423" was correctly converted.
7+
* Improved C++ management of NA values.
8+
19
parzer 0.4.3
210
============
311

‎R/dms-fxns.R‎

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -105,33 +105,17 @@ pz_s <- function(x) {
105105
`+.pz` <- function(e1, e2) {
106106
e1u <- unclass_strip_atts(e1)
107107
e2u <- unclass_strip_atts(e2)
108-
e1 <- switch(attr(e1, "type"),
109-
deg = e1u,
110-
min = e1u / 60,
111-
sec = e1u / 3600
112-
)
113-
e2 <- switch(attr(e2, "type"),
114-
deg = e2u,
115-
min = e2u / 60,
116-
sec = e2u / 3600
117-
)
108+
e1 <- switch(attr(e1, "type"), deg = e1u, min = e1u / 60, sec = e1u / 3600)
109+
e2 <- switch(attr(e2, "type"), deg = e2u, min = e2u / 60, sec = e2u / 3600)
118110
structure(e1 + e2, class = "pz", type = "deg")
119111
}
120112
#' @export
121113
#' @rdname dms
122114
`-.pz` <- function(e1, e2) {
123115
e1u <- unclass_strip_atts(e1)
124116
e2u <- unclass_strip_atts(e2)
125-
e1 <- switch(attr(e1, "type"),
126-
deg = e1u,
127-
min = e1u / 60,
128-
sec = e1u / 3600
129-
)
130-
e2 <- switch(attr(e2, "type"),
131-
deg = e2u,
132-
min = e2u / 60,
133-
sec = e2u / 3600
134-
)
117+
e1 <- switch(attr(e1, "type"), deg = e1u, min = e1u / 60, sec = e1u / 3600)
118+
e2 <- switch(attr(e2, "type"), deg = e2u, min = e2u / 60, sec = e2u / 3600)
135119
structure(e1 - e2, class = "pz", type = "deg")
136120
}
137121
#' @export

‎R/parzer-package.R‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ NULL
88
#' `r lifecycle::badge("stable")`
99
#'
1010
#' parse geographic coordinates
11-
"_PACKAGE"
11+
"_PACKAGE"

‎R/zzz.R‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
assert <- function(x, y) {
22
if (!is.null(x)) {
33
if (!inherits(x, y)) {
4-
stop(deparse(substitute(x)), " must be of class ",
4+
stop(
5+
deparse(substitute(x)),
6+
" must be of class ",
57
paste0(y, collapse = ", "),
68
call. = FALSE
79
)

‎codemeta.json‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,17 @@
44
"identifier": "parzer",
55
"description": "Parse messy geographic coordinates from various character formats to decimal degree numeric values. Parse coordinates into their parts (degree, minutes, seconds); calculate hemisphere from coordinates; pull out individually degrees, minutes, or seconds; add and subtract degrees, minutes, and seconds. C++ code herein originally inspired from code written by Jeffrey D. Bogan, but then completely re-written.",
66
"name": "parzer: Parse Messy Geographic Coordinates",
7-
"relatedLink": ["https://docs.ropensci.org/parzer/", "https://CRAN.R-project.org/package=parzer"],
7+
"relatedLink": "https://docs.ropensci.org/parzer/",
88
"codeRepository": "https://github.com/ropensci/parzer",
99
"issueTracker": "https://github.com/ropensci/parzer/issues",
1010
"license": "https://spdx.org/licenses/MIT",
11-
"version": "0.4.3",
11+
"version": "0.4.4",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",
1515
"url": "https://r-project.org"
1616
},
1717
"runtimePlatform": "R version 4.5.0 (2025-04-11)",
18-
"provider": {
19-
"@id": "https://cran.r-project.org",
20-
"@type": "Organization",
21-
"name": "Comprehensive R Archive Network (CRAN)",
22-
"url": "https://cran.r-project.org"
23-
},
2418
"author": [
2519
{
2620
"@type": "Person",
@@ -198,7 +192,7 @@
198192
"applicationCategory": "Geospatial",
199193
"isPartOf": "https://ropensci.org",
200194
"keywords": ["geospatial", "data", "latitude", "longitude", "parser", "coordinates", "r", "rstats", "geo", "r-package"],
201-
"fileSize": "4749.036KB",
195+
"fileSize": "6120.123KB",
202196
"releaseNotes": "https://github.com/ropensci/parzer/blob/master/NEWS.md",
203197
"readme": "https://github.com/ropensci/parzer/blob/main/README.md",
204198
"contIntegration": ["https://github.com/ropensci/parzer/actions/", "https://app.codecov.io/github/ropensci/parzer?branch=main"],

‎cran-comments.md‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44

55
* This is a new release.
66
* `revdepcheck` passed
7-
* Local and GHA and win_devel R CMD check passed
8-
9-
## Changes not listed in NEWS
10-
11-
* Removed the README file from the package directory as requested by Professor Ripley.
7+
* Local and GHA and win_devel and r-project macOS buider R CMD check passed
128

139
Dear CRAN reviewer,
1410

11+
The package was silently archived because of a C++ undefined cast. Hopefully this has been fixed.
12+
1513
Thank you for your time reviewing this release.
1614

1715
Dr Alban Sagouis

‎revdep/README.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
|collate |en_US.UTF-8 |
1111
|ctype |en_US.UTF-8 |
1212
|tz |Europe/Berlin |
13-
|date |2025-05-19 |
13+
|date |2025-07-22 |
1414
|pandoc |3.6.4 @ /opt/homebrew/bin/pandoc |
15-
|quarto |1.6.40 @ /Applications/Positron.app/Contents/Resources/app/quarto/bin/quarto |
15+
|quarto |1.7.31 @ /Applications/Positron.app/Contents/Resources/app/quarto/bin/quarto |
1616

1717
# Dependencies
1818

19-
|package |old |new |Δ |
20-
|:-------|:-----|:-----|:--|
21-
|parzer |0.4.1 |0.4.2 |* |
19+
|package |old |new |Δ |
20+
|:-------|:---|:-----|:--|
21+
|parzer |NA |0.4.4 |* |
22+
|Rcpp |NA |1.1.0 |* |
2223

2324
# Revdeps
2425

0 commit comments

Comments
 (0)