Skip to content

Commit

Permalink
Add TIME_PERIOD_lab to globals
Browse files Browse the repository at this point in the history
  • Loading branch information
antaldaniel committed Dec 23, 2023
1 parent d41323c commit c5d3901
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ utils::globalVariables(c(
"iotables_label", # <employment_get>
"values", # <employment_get>
".data", # <iotable_get>
"TIME_PERIOD_lab", # <iotables_download>
"values_lab", # <iotables_download>
"TIME_PERIOD_lab", # <iotables_download>
"time_lab", # <iotables_download>
"TIME_PERIOD", # <iotables_download>
"uk_col", # <order_iotable>
Expand Down
12 changes: 6 additions & 6 deletions R/iotables_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ iotables_download <- function ( source = "naio_10_cp1700",
if ( "stk_flow" %in% names ( downloaded ) ) {
downloaded_nested <- nest (
downloaded,
data = -any_of(c( "geo", "geo_lab", "time", "time_lab",
"year", "unit", "unit_lab", "stk_flow", "stk_flow_lab"))
)
data = -any_of(c("geo", "geo_lab", "time", "time_lab",
"year", "unit", "unit_lab", "stk_flow", "stk_flow_lab"))
)
} else {
downloaded_nested <- nest (
downloaded,
data = -any_of(c( "geo", "geo_lab", "time", "time_lab",
"year", "unit", "unit_lab"))
)
data = -any_of(c("geo", "geo_lab", "time", "time_lab",
"year", "unit", "unit_lab"))
)
}

if( !is.null(data_directory) ) {
Expand Down

0 comments on commit c5d3901

Please sign in to comment.