Skip to content

Commit

Permalink
fix for fao issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Debbora Leip committed Apr 26, 2024
1 parent 3009cb7 commit 191695c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '396780'
ValidationKey: '4146370839'
AutocreateReadme: yes
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'mrfaocore: One-line description of this awesome package'
version: 0.2.0
version: 0.2.0.9001
date-released: '2024-04-26'
abstract: One-paragraph description of this awesome package.
authors:
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: mrfaocore
Title: One-line description of this awesome package
Version: 0.2.0
Version: 0.2.0.9001
Date: 2024-04-26
Authors@R: c(person("Ulrich", "Kreidenweis", role = "aut"),
person("Abhijeet", "Mishra", role = "aut"),
Expand Down
6 changes: 3 additions & 3 deletions R/readFAO_online.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ readFAO_online <- function(subtype) { # nolint
# ---- Assigning the ISO codes to countries ----

# Load FAO specific countries (not included in country2iso.csv in madrat)
faoIsoFaoCode <- toolGetMapping("FAOiso_faocode_online.csv", where = "mrfaocore")
faoIsoFaoCodeMapping <- toolGetMapping("FAOiso_faocode_online.csv", where = "mrfaocore")
# convert data frame into named vector as required by toolCountry2isocode
faoIsoFaoCode <- as.character(faoIsoFaoCode$ISO)
names(faoIsoFaoCode) <- as.character(faoIsoFaoCode$Country)
faoIsoFaoCode <- as.character(faoIsoFaoCodeMapping$ISO)
names(faoIsoFaoCode) <- as.character(faoIsoFaoCodeMapping$Country)
# look up ISO codes using central definition and extra FAO mapping from line above
# ignore warnings from FAO aggregate and other irrelevant regions
ignoreRegions <- c("Africa", "Americas", "Asia", "Australia & New Zealand", "Caribbean",
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# One-line description of this awesome package

R package **mrfaocore**, version **0.2.0**
R package **mrfaocore**, version **0.2.0.9001**

[![CRAN status](https://www.r-pkg.org/badges/version/mrfaocore)](https://cran.r-project.org/package=mrfaocore) [![R build status](https://github.com/pik-piam/mrfaocore/workflows/check/badge.svg)](https://github.com/pik-piam/mrfaocore/actions) [![codecov](https://codecov.io/gh/pik-piam/mrfaocore/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/mrfaocore)

Expand Down Expand Up @@ -38,7 +38,7 @@ In case of questions / problems please contact David Chen <david.chen@pik-potsda

To cite package **mrfaocore** in publications use:

Kreidenweis U, Mishra A, Karstens K, Leon Bodirsky B, Leip D, Stevanovic M, Leon Bodrisky B, Chen D, Klein D, Molina Bacca E (2024). _mrfaocore: One-line description of this awesome package_. R package version 0.2.0, <URL: https://github.com/pik-piam/mrfaocore>.
Kreidenweis U, Mishra A, Karstens K, Leon Bodirsky B, Leip D, Stevanovic M, Leon Bodrisky B, Chen D, Klein D, Molina Bacca E (2024). _mrfaocore: One-line description of this awesome package_. R package version 0.2.0.9001, <URL: https://github.com/pik-piam/mrfaocore>.

A BibTeX entry for LaTeX users is

Expand All @@ -47,7 +47,7 @@ A BibTeX entry for LaTeX users is
title = {mrfaocore: One-line description of this awesome package},
author = {Ulrich Kreidenweis and Abhijeet Mishra and Kristine Karstens and Benjamin {Leon Bodirsky} and Debbora Leip and Mishko Stevanovic and Benjamin {Leon Bodrisky} and David Chen and David Klein and Edna {Molina Bacca}},
year = {2024},
note = {R package version 0.2.0},
note = {R package version 0.2.0.9001},
url = {https://github.com/pik-piam/mrfaocore},
}
```

0 comments on commit 191695c

Please sign in to comment.