Skip to content

Commit

Permalink
fixed problems
Browse files Browse the repository at this point in the history
  • Loading branch information
tscheypidi committed Apr 24, 2024
1 parent cdec121 commit db0aa18
Show file tree
Hide file tree
Showing 12 changed files with 67 additions and 11 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
^\.Rproj\.user$
^.lintr$
^tests/.lintr$
^codecov\.yml$
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '376922837'
ValidationKey: '198370'
AutocreateReadme: yes
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
Expand Down
30 changes: 28 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,39 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'mrlandcore: One-line description of this awesome package'
version: 0.0.1.9001
version: 0.1.0
date-released: '2024-04-24'
abstract: One-paragraph description of this awesome package.
authors:
- family-names: Beier
given-names: Felicitas
email: beier@pik-potsdam.de
- family-names: Karstens
given-names: Kristine
email: karstens@pik-potsdam.de
- family-names: Alves
given-names: Marcos
- family-names: Philipp Dietrich
given-names: Jan
- family-names: Leon Bodirsky
given-names: Benjamin
- family-names: Hoetten
given-names: David
- family-names: Humpenoeder
given-names: Florian
- family-names: Heinke
given-names: Jens
- family-names: v. Jeetze
given-names: Patrick
- family-names: Mishra
given-names: Abhijeet
- family-names: Beier
given-names: Felcitas
- family-names: Wirth
given-names: Stephen
- family-names: Chen
given-names: David
- family-names: Kreidenweis
given-names: Ulrich
license: LGPL-3.0
repository-code: https://github.com/pik-piam/mrlandcore

4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: mrlandcore
Title: One-line description of this awesome package
Version: 0.0.1.9001
Version: 0.1.0
Date: 2024-04-24
Authors@R:
c(person("Felicitas", "Beier", email = "beier@pik-potsdam.de", role = c("aut","cre")),
Expand All @@ -26,8 +26,10 @@ Depends:
magclass (>= 3.17),
madrat (>= 2.20.9),
mrdrivers (>= 1.0.0),
mrfaocore,
mstools
Imports:
dplyr,
lpjclass,
lpjmlkit,
luscale,
Expand Down
7 changes: 7 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ export(toolLPJmLVersion)
import(madrat)
import(magclass)
import(mrdrivers)
import(mrfaocore)
import(mstools)
importFrom(SPEI,thornthwaite)
importFrom(dplyr,"%>%")
importFrom(lpjclass,read.LPJ_input)
importFrom(lpjclass,readLPJ)
importFrom(lpjmlkit,read_io)
Expand Down Expand Up @@ -44,6 +46,9 @@ importFrom(magclass,setYears)
importFrom(magclass,where)
importFrom(magpiesets,addLocation)
importFrom(magpiesets,findset)
importFrom(mrfaocore,toolExtrapolateFodder)
importFrom(mrfaocore,toolFAOcombine)
importFrom(mstools,toolConv2CountryByCelltype)
importFrom(mstools,toolHoldConstant)
importFrom(ncdf4,nc_open)
importFrom(nleqslv,nleqslv)
Expand All @@ -62,8 +67,10 @@ importFrom(terra,ext)
importFrom(terra,project)
importFrom(terra,rast)
importFrom(terra,subset)
importFrom(terra,terraOptions)
importFrom(utils,download.file)
importFrom(utils,head)
importFrom(utils,person)
importFrom(utils,read.csv)
importFrom(utils,read.delim)
importFrom(utils,tail)
Expand Down
1 change: 1 addition & 0 deletions R/calcLUH2v2.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#' calcOutput("LUH2v2")
#' }
#' @importFrom magclass getNames
#' @importFrom mstools toolConv2CountryByCelltype
#' @importFrom magpiesets findset

calcLUH2v2 <- function(landuse_types = "magpie", irrigation = FALSE, # nolint
Expand Down
2 changes: 1 addition & 1 deletion R/imports.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by lucode2: do not edit by hand

#' @import magclass madrat mrdrivers mstools
#' @import magclass madrat mrdrivers mrfaocore mstools
NULL
1 change: 1 addition & 0 deletions R/readLPJmL_new.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#' @importFrom magpiesets addLocation
#' @importFrom lpjclass readLPJ
#' @importFrom stringr str_subset str_trim str_split
#' @importFrom dplyr %>%

readLPJmL_new <- function(subtype = "LPJmL4_for_MAgPIE_44ac93de:GSWP3-W5E5:historical:soilc") { # nolint

Expand Down
2 changes: 1 addition & 1 deletion R/readLUH2v2.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' Jan Philipp Dietrich, Patrick v. Jeetze
#'
#' @importFrom ncdf4 nc_open
#' @importFrom terra rast ext subset aggregate project ext<-
#' @importFrom terra rast ext subset aggregate project ext<- terraOptions
#' @importFrom magclass as.magpie mbind
#' @importFrom withr local_tempdir defer
#' @importFrom stringr str_match str_count str_subset
Expand Down
Binary file added R/sysdata.rda
Binary file not shown.
10 changes: 5 additions & 5 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 **mrlandcore**, version **0.0.1.9001**
R package **mrlandcore**, version **0.1.0**

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

Expand Down Expand Up @@ -32,22 +32,22 @@ update.packages()

## Questions / Problems

In case of questions / problems please contact Kristine Karstens <karstens@pik-potsdam.de>.
In case of questions / problems please contact Felicitas Beier <beier@pik-potsdam.de>.

## Citation

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

Karstens K (2024). _mrlandcore: One-line description of this awesome package_. R package version 0.0.1.9001, <https://github.com/pik-piam/mrlandcore>.
Beier F, Karstens K, Alves M, Philipp Dietrich J, Leon Bodirsky B, Hoetten D, Humpenoeder F, Heinke J, v. Jeetze P, Mishra A, Beier F, Wirth S, Chen D, Kreidenweis U (2024). _mrlandcore: One-line description of this awesome package_. R package version 0.1.0, <URL: https://github.com/pik-piam/mrlandcore>.

A BibTeX entry for LaTeX users is

```latex
@Manual{,
title = {mrlandcore: One-line description of this awesome package},
author = {Kristine Karstens},
author = {Felicitas Beier and Kristine Karstens and Marcos Alves and Jan {Philipp Dietrich} and Benjamin {Leon Bodirsky} and David Hoetten and Florian Humpenoeder and Jens Heinke and Patrick {v. Jeetze} and Abhijeet Mishra and Felcitas Beier and Stephen Wirth and David Chen and Ulrich Kreidenweis},
year = {2024},
note = {R package version 0.0.1.9001},
note = {R package version 0.1.0},
url = {https://github.com/pik-piam/mrlandcore},
}
```
18 changes: 18 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
comment: true
github_checks:
annotations: false
coverage:
precision: 2
round: down
range: "0...95"
status:
project:
default:
target: auto
threshold: 1%
informational: true
patch:
default:
target: auto
threshold: 1%
informational: true

0 comments on commit db0aa18

Please sign in to comment.