Skip to content

Commit

Permalink
fix auto language settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yannikbuhl committed Dec 6, 2024
1 parent bfe2e44 commit a267457
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/gen_cube.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ gen_cube_ <- function(name,
classifyingvariable3 = NULL,
classifyingkey3 = NULL,
stand = NULL,
language = Sys.getenv("GENESIS_LANG")) {
language = Sys.getenv("RESTATIS_LANG")) {

area <- match.arg(area)
database <- match.arg(database)
Expand Down
2 changes: 1 addition & 1 deletion R/gen_jobs.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ gen_download_job <- function(name,
database = c("genesis", "regio"),
area = c("all", "public", "user"),
compress = FALSE,
language = Sys.getenv("GENESIS_LANG"),
language = Sys.getenv("RESTATIS_LANG"),
all_character = TRUE) {

#-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion R/gen_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ gen_table_ <- function(name,
classifyingvariable3 = NULL,
classifyingkey3 = NULL,
stand = NULL,
language = Sys.getenv("GENESIS_LANG"),
language = Sys.getenv("RESTATIS_LANG"),
job = FALSE,
all_character = TRUE) {

Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
gen_regio_api <<- memoise::memoise(gen_regio_api)

# Set the default language of the package
if (!nzchar(Sys.getenv("GENESIS_LANG"))) Sys.setenv(RESTATIS_LANG = "en")
if (!nzchar(Sys.getenv("RESTATIS_LANG"))) Sys.setenv(RESTATIS_LANG = "en")

# Set the default URL for the GENESIS database
if (!nzchar(Sys.getenv("RESTATIS_GENESIS_URL"))) {
Expand Down
4 changes: 2 additions & 2 deletions man/gen_download_job.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a267457

Please sign in to comment.