Skip to content

Commit

Permalink
unify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenke-pik committed Jun 28, 2024
1 parent 5bc93c6 commit f566ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ importFrom(magclass,getSets)
importFrom(magclass,getYears)
importFrom(magclass,lowpass)
importFrom(magclass,magpie_expand)
importFrom(magclass,matchDim)
importFrom(magclass,mbind)
importFrom(magclass,mcalc)
importFrom(magclass,mselect)
Expand Down
8 changes: 4 additions & 4 deletions R/reportEmi.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#'
#' @importFrom gdx readGDX
#' @importFrom dplyr %>% distinct filter full_join group_by inner_join left_join mutate rename select summarise
#' @importFrom magclass mselect mselect<- collapseDim getItems getRegions getYears matchDim
#' @importFrom magclass mselect mselect<- collapseDim getItems getRegions getYears
#' @importFrom madrat toolAggregate
#' @importFrom tibble as_tibble
#' @importFrom piamutils deletePlus
Expand Down Expand Up @@ -147,7 +147,7 @@ reportEmi <- function(gdx, output = NULL, regionSubsetList = NULL,
if (length(vm_demFENonEnergySector) == 0) {
vm_demFENonEnergySector <- NULL
} else {
vm_demFENonEnergySector <- matchDim(vm_demFENonEnergySector, vm_demFeSector)
vm_demFENonEnergySector <- magclass::matchDim(vm_demFENonEnergySector, vm_demFeSector)
}

# secondary energy production
Expand Down Expand Up @@ -326,7 +326,7 @@ reportEmi <- function(gdx, output = NULL, regionSubsetList = NULL,
react = "silent")[,t,]
}
else {
vm_incinerationEmi <- matchDim(vm_incinerationEmi, v37_plasticsCarbon,
vm_incinerationEmi <- magclass::matchDim(vm_incinerationEmi, v37_plasticsCarbon,
fill = 0)
}

Expand All @@ -337,7 +337,7 @@ reportEmi <- function(gdx, output = NULL, regionSubsetList = NULL,
if (is.null(vm_incinerationCCS)) {
rm('vm_incinerationCCS')
} else {
vm_incinerationCCS <- matchDim(vm_incinerationCCS, vm_incinerationEmi)
vm_incinerationCCS <- magclass::matchDim(vm_incinerationCCS, vm_incinerationEmi)
}

vm_nonIncineratedPlastics <- readGDX(gdx, "vm_nonIncineratedPlastics", field = "l", restore_zeros = FALSE,
Expand Down

0 comments on commit f566ac4

Please sign in to comment.