Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move mr packages to Imports #578

Merged
merged 5 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
ValidationKey: '38795512'
ValidationKey: '386431720'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
- 'Warning: multiple methods tables found for ‘direction’'
- 'Warning: multiple methods tables found for ‘gridDistance’'
- Imports includes .* non-default packages.
- Invalid URL: .*
AcceptedNotes:
- unable to verify current time
- Imports includes .* non-default packages.
- installed size is
- All declared Imports should be used.
AutocreateReadme: yes
allowLinterWarnings: yes
enforceVersionUpdate: yes
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'mrremind: MadRat REMIND Input Data Package'
version: 0.193.9
date-released: '2024-10-12'
version: 0.193.10
date-released: '2024-10-16'
abstract: The mrremind packages contains data preprocessing for the REMIND model.
authors:
- family-names: Baumstark
Expand Down
12 changes: 6 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: mrremind
Title: MadRat REMIND Input Data Package
Version: 0.193.9
Date: 2024-10-12
Version: 0.193.10
Date: 2024-10-16
Authors@R: c(
person("Lavinia", "Baumstark", , "lavinia@pik-potsdam.de", role = c("aut", "cre")),
person("Renato", "Rodrigues", role = "aut"),
Expand Down Expand Up @@ -38,12 +38,8 @@ Description: The mrremind packages contains data preprocessing for the
License: LGPL-3 | file LICENSE
URL: https://github.com/pik-piam/mrremind
Depends:
edgeTransport (>= 1.5.5),
GDPuc (>= 1.3.0),
madrat (>= 3.7.1),
magclass (>= 6.16.1),
mrcommons (>= 1.44.12),
mrdrivers (>= 2.0.0),
R (>= 2.10.0)
Imports:
assertr,
Expand All @@ -52,10 +48,14 @@ Imports:
countrycode,
data.table,
dplyr,
edgeTransport (>= 1.5.5),
GDPuc (>= 1.3.0),
ggplot2,
Hmisc,
luscale,
magrittr,
mrcommons (>= 1.44.12),
mrdrivers (>= 2.0.0),
nnls,
purrr,
quitte (>= 0.3105.0),
Expand Down
4 changes: 0 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,8 @@ export(toolCubicFunctionDisaggregate)
export(toolFillEU34Countries)
export(toolSolarFunctionAggregate)
export(tool_expand_tibble)
import(GDPuc)
import(edgeTransport)
import(madrat)
import(magclass)
import(mrcommons)
import(mrdrivers)
importFrom(GDPuc,convertGDP)
importFrom(assertr,assert)
importFrom(assertr,in_set)
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 edgeTransport GDPuc madrat magclass mrcommons mrdrivers
#' @import madrat magclass
NULL
18 changes: 11 additions & 7 deletions R/madrat.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@

.onAttach <- function(libname, pkgname) {
madrat::madratAttach(pkgname)
.onLoad <- function(libname, pkgname) {
madrat::madratAttach(c(pkgname, "edgeTransport", "GDPuc", "mrcommons", "mrdrivers"))
madrat::setConfig(
nolabels = c("REMIND", "VALIDATIONREMIND"),
.cfgchecks = FALSE, .verbose = FALSE
)
}

.onDetach <- function(libpath) {
madrat::madratDetach(libpath)

.onUnload <- function(libpath) {
madrat::madratDetach(c(libpath, "edgeTransport", "GDPuc", "mrcommons", "mrdrivers"))
}

# redirect standard messaging functions to vcat
cat <- function(...) vcat(1, ...)
cat <- function(...) vcat(1, ...)
message <- function(...) vcat(1, ...)
warning <- function(...) vcat(0, ...)
stop <- function(...) vcat(-1, ...)
stop <- function(...) vcat(-1, ...)
6 changes: 0 additions & 6 deletions R/zzz.R

This file was deleted.

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

R package **mrremind**, version **0.193.9**
R package **mrremind**, version **0.193.10**

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

Expand Down Expand Up @@ -39,7 +39,7 @@ In case of questions / problems please contact Lavinia Baumstark <lavinia@pik-po

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

Baumstark L, Rodrigues R, Levesque A, Oeser J, Bertram C, Mouratiadou I, Malik A, Schreyer F, Soergel B, Rottoli M, Mishra A, Dirnaichner A, Pehl M, Giannousakis A, Klein D, Strefler J, Feldhaus L, Brecha R, Rauner S, Dietrich J, Bi S, Benke F, Weigmann P, Richters O, Hasse R, Fuchs S, Mandaroux R, Koch J (2024). _mrremind: MadRat REMIND Input Data Package_. R package version 0.193.9, <https://github.com/pik-piam/mrremind>.
Baumstark L, Rodrigues R, Levesque A, Oeser J, Bertram C, Mouratiadou I, Malik A, Schreyer F, Soergel B, Rottoli M, Mishra A, Dirnaichner A, Pehl M, Giannousakis A, Klein D, Strefler J, Feldhaus L, Brecha R, Rauner S, Dietrich J, Bi S, Benke F, Weigmann P, Richters O, Hasse R, Fuchs S, Mandaroux R, Koch J (2024). _mrremind: MadRat REMIND Input Data Package_. R package version 0.193.10, <https://github.com/pik-piam/mrremind>.

A BibTeX entry for LaTeX users is

Expand All @@ -48,7 +48,7 @@ A BibTeX entry for LaTeX users is
title = {mrremind: MadRat REMIND Input Data Package},
author = {Lavinia Baumstark and Renato Rodrigues and Antoine Levesque and Julian Oeser and Christoph Bertram and Ioanna Mouratiadou and Aman Malik and Felix Schreyer and Bjoern Soergel and Marianna Rottoli and Abhijeet Mishra and Alois Dirnaichner and Michaja Pehl and Anastasis Giannousakis and David Klein and Jessica Strefler and Lukas Feldhaus and Regina Brecha and Sebastian Rauner and Jan Philipp Dietrich and Stephen Bi and Falk Benke and Pascal Weigmann and Oliver Richters and Robin Hasse and Sophie Fuchs and Rahel Mandaroux and Johannes Koch},
year = {2024},
note = {R package version 0.193.9},
note = {R package version 0.193.10},
url = {https://github.com/pik-piam/mrremind},
}
```
Loading