Skip to content

Commit

Permalink
Merge pull request #42 from pfuehrlich-pik/master
Browse files Browse the repository at this point in the history
remove superfluous R/.buildlibrary & R/.Rbuildignore, end files with newline to address warning
  • Loading branch information
pfuehrlich-pik authored Feb 1, 2022
2 parents 262dcd0 + e2b0ab3 commit 8768783
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 22 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ carbon_stored.*
^\.github$
^codecov\.yml$
^\.pre-commit-config\.yaml$
^workflow$
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '3062864'
ValidationKey: '3081888'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/lucode2-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
env:
USE_BSPM: "true"
_R_CHECK_FORCE_SUGGESTS_: "false"
NO_BINARY_INSTALL_R_PACKAGES: 'c("madrat", "magclass", "citation", "gms", "goxygen", "raster")'
NO_BINARY_INSTALL_R_PACKAGES: 'c("madrat", "magclass", "citation", "gms", "goxygen")'

jobs:
lucode2-check:
Expand All @@ -22,6 +22,9 @@ jobs:

- name: Bootstrap
run: |
sudo chown runner -R .
sudo locale-gen en_US.UTF-8
sudo add-apt-repository -y ppa:ubuntugis/ppa
curl -OLs https://eddelbuettel.github.io/r-ci/run.sh
chmod 0755 run.sh
./run.sh bootstrap
Expand Down Expand Up @@ -55,7 +58,7 @@ jobs:

- name: Install dependencies
run: |
./run.sh install_aptget libgdal-dev
./run.sh install_aptget libhdf5-dev
./run.sh install_all
./run.sh install_r lucode2 covr
Expand Down
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "mrcommons: MadRat commons Input Data Library",
"version": "1.6.1",
"version": "1.6.2",
"description": "<p>Provides useful functions and a common structure to all the input data required to run models like MAgPIE\n and REMIND of model input data.<\/p>",
"creators": [
{
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mrcommons
Type: Package
Title: MadRat commons Input Data Library
Version: 1.6.1
Version: 1.6.2
Date: 2022-02-01
Authors@R: c(person("Benjamin Leon", "Bodirsky", email = "[email protected]", role = "aut"),
person("Kristine", "Karstens", role = "aut"),
Expand Down
1 change: 0 additions & 1 deletion R/.Rbuildignore

This file was deleted.

7 changes: 0 additions & 7 deletions R/.buildlibrary

This file was deleted.

2 changes: 1 addition & 1 deletion R/calcCentralFeedshares.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ calcCentralFeedshares <- function(){
max=1
))

}
}
2 changes: 1 addition & 1 deletion R/calcFeedBasketsUncalibrated.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ calcFeedBasketsUncalibrated <- function() {
unit="tDM / t DM",
description="Uncalibrated feed requirements in DM per DM products generated for 5 livestock systems"))

}
}
2 changes: 1 addition & 1 deletion R/calcFeedEfficiencyFuture.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ calcFeedEfficiencyFuture <- function(){
description="Feed efficiency for dairy cattle, beef cattle, pigs, hens and broilers"
))

}
}
2 changes: 1 addition & 1 deletion R/convertKoeppen.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ convertKoeppen<-function(x, subtype="iso") {

} else stop("Cellular koeppen-geiger can not be converted to country level data. Use subtype='iso' for country level data.")

}
}
2 changes: 1 addition & 1 deletion R/convertMAgPIE.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ convertMAgPIE <- function(x, subtype) {
}

return(y)
}
}
2 changes: 1 addition & 1 deletion R/correctFoodSystemsDashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ correctFoodSystemsDashboard <- function(x, subtype){
}
return(x)

}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MadRat commons Input Data Library

R package **mrcommons**, version **1.6.1**
R package **mrcommons**, version **1.6.2**

[![CRAN status](https://www.r-pkg.org/badges/version/mrcommons)](https://cran.r-project.org/package=mrcommons) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3822009.svg)](https://doi.org/10.5281/zenodo.3822009) [![R build status](https://github.com/pik-piam/mrcommons/workflows/check/badge.svg)](https://github.com/pik-piam/mrcommons/actions) [![codecov](https://codecov.io/gh/pik-piam/mrcommons/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/mrcommons) [![r-universe](https://pik-piam.r-universe.dev/badges/mrcommons)](https://pik-piam.r-universe.dev/ui#builds)

Expand Down Expand Up @@ -39,7 +39,7 @@ In case of questions / problems please contact Jan Philipp Dietrich <dietrich@pi

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

Bodirsky B, Karstens K, Baumstark L, Weindl I, Wang X, Mishra A, Wirth S, Stevanovic M, Steinmetz N, Kreidenweis U, Rodrigues R, Popov R, Humpenoeder F, Giannousakis A, Levesque A, Klein D, Araujo E, Beier F, Oeser J, Pehl M, Leip D, Crawford M, Molina Bacca E, von Jeetze P, Martinelli E, Schreyer F, Soergel B, Dietrich J (2022). _mrcommons: MadRat commons Input Data Library_. doi: 10.5281/zenodo.3822009 (URL: https://doi.org/10.5281/zenodo.3822009), R package version 1.6.1, <URL: https://github.com/pik-piam/mrcommons>.
Bodirsky B, Karstens K, Baumstark L, Weindl I, Wang X, Mishra A, Wirth S, Stevanovic M, Steinmetz N, Kreidenweis U, Rodrigues R, Popov R, Humpenoeder F, Giannousakis A, Levesque A, Klein D, Araujo E, Beier F, Oeser J, Pehl M, Leip D, Crawford M, Molina Bacca E, von Jeetze P, Martinelli E, Schreyer F, Soergel B, Dietrich J (2022). _mrcommons: MadRat commons Input Data Library_. doi: 10.5281/zenodo.3822009 (URL: https://doi.org/10.5281/zenodo.3822009), R package version 1.6.2, <URL: https://github.com/pik-piam/mrcommons>.

A BibTeX entry for LaTeX users is

Expand All @@ -48,7 +48,7 @@ A BibTeX entry for LaTeX users is
title = {mrcommons: MadRat commons Input Data Library},
author = {Benjamin Leon Bodirsky and Kristine Karstens and Lavinia Baumstark and Isabelle Weindl and Xiaoxi Wang and Abhijeet Mishra and Stephen Wirth and Mishko Stevanovic and Nele Steinmetz and Ulrich Kreidenweis and Renato Rodrigues and Roman Popov and Florian Humpenoeder and Anastasis Giannousakis and Antoine Levesque and David Klein and Ewerton Araujo and Felicitas Beier and Julian Oeser and Michaja Pehl and Debbora Leip and Michael Crawford and Edna {Molina Bacca} and Patrick {von Jeetze} and Eleonora Martinelli and Felix Schreyer and Bjoern Soergel and Jan Philipp Dietrich},
year = {2022},
note = {R package version 1.6.1},
note = {R package version 1.6.2},
doi = {10.5281/zenodo.3822009},
url = {https://github.com/pik-piam/mrcommons},
}
Expand Down

0 comments on commit 8768783

Please sign in to comment.