Skip to content

Commit

Permalink
Setting global variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
antaldaniel committed Dec 23, 2023
1 parent c98ebeb commit f8a7a26
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 3 deletions.
7 changes: 6 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ Suggests:
testthat,
rmarkdown,
spelling,
covr
covr,
roxyglobals
Depends: R(>= 3.5.0)
VignetteBuilder: knitr
Language: en-GB
Roxygen: list(roclets = c("collate", "namespace", "rd",
"roxyglobals::global_roclet"))
Config/roxyglobals/filename: globals.R
Config/roxyglobals/unique: FALSE
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ importFrom(dplyr,select)
importFrom(dplyr,summarise)
importFrom(dplyr,summarize)
importFrom(dplyr,ungroup)
importFrom(dplyr,where)
importFrom(eurostat,get_eurostat)
importFrom(eurostat,label_eurostat)
importFrom(forcats,fct_reorder)
Expand Down
14 changes: 14 additions & 0 deletions R/globals.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by roxyglobals: do not edit by hand

utils::globalVariables(c(
"vars", # <uk_2010_get>
"values", # <uk_2010_get>
"rowname", # <uk_2010_get>
"value", # <uk_2010_get>
".", # <uk_2010_get>
"uk_col_lab", # <uk_2010_get>
"uk_col", # <uk_2010_get>
"uk_row_lab", # <uk_2010_get>
"uk_row", # <uk_2010_get>
NULL
))
3 changes: 2 additions & 1 deletion R/input_flow_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#' @param empty_remove Defaults to \code{TRUE}. If you want to keep empty
#' primary input rows, choose \code{FALSE}. Empty product/industry rows are always
#' removed to avoid division by zero error in the analytic functions.
#' @importFrom dplyr mutate across left_join select
#' @importFrom dplyr mutate across left_join select where
#' @autoglobal
#' @return A data flow matrix (a symmetric use table) with a key column.
#' @family analytic object functions
#' @examples
Expand Down
1 change: 1 addition & 0 deletions R/iotable_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ iotable_get <- function ( labelled_io_data = NULL,
iotables_row <- iotables_col <- prod_na <- induse <- variable <- NULL
row_order <- col_order <- code <- label <- NULL
uk_col <- uk_col_label <- uk_row <- uk_row_label <- indicator <- NULL
numeric_label <- iotables_label <- values <- NULL

if ( labelling == 'eurostat' ) labelling <- 'short'
## Parameter exception handling -------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion R/primary_input_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
#' @param data_table A symmetric input-output table, a use table, or a
#' supply table retrieved by the \code{\link{iotable_get}} function.
#' @param primary_input The primary input to be returned from the table.
#' @importFrom dplyr select mutate across
#' @importFrom dplyr select mutate across where
#' @return A data frame with the vector of multipliers and the an
#' auxiliary metadata column (for joining with other matrixes.)
#' @family iotables processing functions
#' @autoglobal
#' @examples
#' comp_employees_de <- primary_input_get(
#' data_table = iotable_get(),
Expand Down
1 change: 1 addition & 0 deletions R/uk_2010_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#' @importFrom rlang set_names
#' @importFrom utils download.file
#' @importFrom readxl read_excel
#' @autoglobal
#' @examples
#' \dontrun{
#' uk2010 <- uk_2010_get()
Expand Down
2 changes: 2 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ chars_collapse <- function (x, collapse = ", ") {
if (length(x)>1) x <- paste(x, collapse = ", ")
x
}


0 comments on commit f8a7a26

Please sign in to comment.