R/r6_download_weather.R

#' amort
#' @import R6
#' @export weather_download
weather_download <- R6::R6Class(
  "weather_download",
  portable = FALSE,
  cloneable = FALSE,
  list(
    #' @description
    #' Say hi.
    run_all = function() {
      # weather_download
      if (actions[["weather_download"]]$can_perform_action()) {
        fd::msg("Brain updating weather", slack = T)
        fd::update_weather()
        actions[["weather_download"]]$action_performed()
        fd::msg("Brain updating weather finished", slack = T)
      }
    }
  )
)
folkehelseinstituttet/dashboards_brain documentation built on March 19, 2020, 4:46 a.m.