Skip to content

Commit

Permalink
make utils explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
tlorusso committed May 19, 2022
1 parent e1f73a1 commit 1fe466b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# package startup-message (data source displayed)

#' Title
#'
#' @param lib
#' @param pkg
#' @importFrom utils packageVersion
#'
#' @examples

.onAttach <- function(lib, pkg)
{
packageStartupMessage('************************************************************')
packageStartupMessage(paste('* swissdd',packageVersion("swissdd"),' *'))
packageStartupMessage(paste('* swissdd',utils::packageVersion("swissdd"),' *'))
packageStartupMessage('* developed by politan.ch *')
packageStartupMessage('* *')
packageStartupMessage('* Data sources: *')
Expand All @@ -19,6 +27,7 @@
# suppress notes

utils::globalVariables(c("id", "resultat","res","geoid",
"kantId",
"canton_id","canton_name",
"district_id","district_name",
"mun_id","mun_name",
Expand All @@ -36,7 +45,8 @@ utils::globalVariables(c("id", "resultat","res","geoid",
"text",
"measure", "vogeId", "geometry",
"bezkId", "stimmbeteiligungInProzent",
"text"#,"ktid"
"text",#,"ktid"
"packageVersion"
))


Expand Down

0 comments on commit 1fe466b

Please # to comment.