Skip to content

Commit

Permalink
fixed a bug with R v4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nevrome committed May 31, 2024
1 parent 574eae8 commit 5e603a1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: c14bazAAR
Title: Download and Prepare C14 Dates from Different Source Databases
Description: Query different C14 date databases and apply basic data cleaning, merging and calibration steps. Currently available databases: 14cpalaeolithic, 14sea, adrac, agrichange, aida, austarch, bda, calpal, caribbean, eubar, euroevol, irdd, jomon, katsianis, kiteeastafrica, medafricarbon, mesorad, neonet, neonetatl, nerd, p3k14c, pacea, palmisano, radon, radonb, rxpand, sard.
Description: Query different C14 date databases and apply basic data cleaning, merging and calibration steps. Currently available databases: 14cpalaeolithic, 14sea, adrac, agrichange, aida, austarch, bda, calpal, caribbean, eubar, euroevol, irdd, jomon, katsianis, kiteeastafrica, medafricarbon, mesorad, neonet, neonetatl, nerd, p3k14c, pacea, palmisano, rado.nb, rxpand, sard.
Version: 5.0.0
Authors@R:
c(person(given = "Clemens",
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- deprecated `get_radon` and `get_radonb`
- added a new function `get_rado.nb`
- updated 14cpalaeolithic to the new version v31
- fixed an issue with a unicode character in the format function that was called in the plot function and failed in R v4.4.0; just replaced the longer dash \u2015 with `-`

# 4.1.0

Expand Down
4 changes: 2 additions & 2 deletions R/c14_date_list_basic.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ format.c14_date_list <- function(x, ...) {
if("c14age" %in% colnames(x)) {
out_str$range_uncal <- paste0(
"\t", "uncalBP: ",
round(max(x[["c14age"]], na.rm = TRUE), -2), " \u2015 ", round(min(x[["c14age"]], na.rm = TRUE), -2)
round(max(x[["c14age"]], na.rm = TRUE), -2), " - ", round(min(x[["c14age"]], na.rm = TRUE), -2)
)
}
if("calage" %in% colnames(x)) {
out_str$range_cal <- paste0(
"\t", "calBP: ",
round(max(x[["calage"]], na.rm = TRUE), -2), " \u2015 ", round(min(x[["calage"]], na.rm = TRUE), -2)
round(max(x[["calage"]], na.rm = TRUE), -2), " - ", round(min(x[["calage"]], na.rm = TRUE), -2)
)
}
return_value <- paste(out_str, collapse = "\n", sep = "")
Expand Down
8 changes: 4 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "c14bazAAR",
"description": "Query different C14 date databases and apply basic data cleaning, merging and calibration steps. Currently available databases: 14cpalaeolithic, 14sea, adrac, agrichange, aida, austarch, bda, calpal, caribbean, eubar, euroevol, irdd, jomon, katsianis, kiteeastafrica, medafricarbon, mesorad, neonet, neonetatl, nerd, p3k14c, pacea, palmisano, radon, radonb, rxpand, sard.",
"description": "Query different C14 date databases and apply basic data cleaning, merging and calibration steps. Currently available databases: 14cpalaeolithic, 14sea, adrac, agrichange, aida, austarch, bda, calpal, caribbean, eubar, euroevol, irdd, jomon, katsianis, kiteeastafrica, medafricarbon, mesorad, neonet, neonetatl, nerd, p3k14c, pacea, palmisano, rado.nb, rxpand, sard.",
"name": "c14bazAAR: Download and Prepare C14 Dates from Different Source Databases",
"relatedLink": "https://docs.ropensci.org/c14bazAAR",
"codeRepository": "https://github.com/ropensci/c14bazAAR",
"issueTracker": "https://github.com/ropensci/c14bazAAR/issues",
"license": "https://spdx.org/licenses/GPL-2.0",
"version": "4.1.0",
"version": "5.0.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.2.2 Patched (2022-11-10 r83330)",
"runtimePlatform": "R version 4.4.0 (2024-04-24)",
"author": [
{
"@type": "Person",
Expand Down Expand Up @@ -436,7 +436,7 @@
},
"SystemRequirements": null
},
"fileSize": "3217.631KB",
"fileSize": "3130.491KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
2 changes: 1 addition & 1 deletion man/c14bazAAR-package.Rd

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

0 comments on commit 5e603a1

Please sign in to comment.