Skip to content

Commit

Permalink
Merge pull request #27 from phgrosjean/phg_contrib
Browse files Browse the repository at this point in the history
Correction of two bugs related to startup
  • Loading branch information
eliocamp authored Nov 5, 2024
2 parents 1df2c93 + 36b82e7 commit 1057b6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ License: GPL (>= 3)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Depends:
utils
Imports:
pkgload,
utils,
yaml
URL: https://eliocamp.github.io/rhelpi18n/
7 changes: 7 additions & 0 deletions R/zzzz.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
.onLoad <- function(libname, pkgname){
# We need to explicitly set language, otherwise there is a problem in RStudio:
# error in strsplit(target_language, ":")[[1]][[1]] : subscript out of bound
# when running resolve_lang()
if (is.na(Sys.getenv("LANGUAGE", NA)))
Sys.setLanguage("en")

library(utils) # Apparently required for R CMD check despite Depends: utils ?!
utils <- asNamespace('utils')

package_env <- as.environment('package:utils')
Expand Down

0 comments on commit 1057b6b

Please sign in to comment.