Skip to content

Commit

Permalink
tidy up and re-organise sub-projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestguevarra committed Apr 17, 2024
1 parent 5f50f4a commit 982abc7
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
1 change: 0 additions & 1 deletion R/pagasa_heat_index.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ heat_index_get_image_urls <- function(.url = "https://pubfiles.pagasa.dost.gov.p
#'
#' @export
#'
#'

heat_index_download_image_files <- function(heat_index_url,
.date,
Expand Down
8 changes: 4 additions & 4 deletions _targets.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
################################################################################
#
# General Targets Workflow
# Overall targets workflow for PAGASA data processing and archiving
#
################################################################################

## Load libraries and custom functions -----------------------------------------
suppressPackageStartupMessages(source("packages.R"))
for (f in list.files(here::here("R"), full.names = TRUE)) source (f)
## Setup workflow using project-wide settings ----------------------------------
source("_targets_setup")


## Create targets and list targets objects -------------------------------------

Expand Down
7 changes: 3 additions & 4 deletions _targets_climate.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
################################################################################
#
# General Targets Workflow
# Targets workflow for climate data download, extraction, and processing
#
################################################################################

## Load libraries and custom functions -----------------------------------------
suppressPackageStartupMessages(source("packages.R"))
for (f in list.files(here::here("R"), full.names = TRUE)) source (f)
## Setup workflow using project-wide settings ----------------------------------
source("_targets_setup")


## Download targets ------------------------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions _targets_cyclones.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
#
################################################################################

## Load libraries and custom functions -----------------------------------------
suppressPackageStartupMessages(source("packages.R"))
for (f in list.files(here::here("R"), full.names = TRUE)) source (f)
## Setup workflow using project-wide settings ----------------------------------
source("_targets_setup")


## Download targets ------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions _targets_heat.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
################################################################################
#
# General Targets Workflow
# Targets workflow for heat index data download, extraction, and processing
#
################################################################################

## Load libraries and custom functions -----------------------------------------
suppressPackageStartupMessages(source("packages.R"))
for (f in list.files(here::here("R"), full.names = TRUE)) source (f)
## Setup workflow using project-wide settings ----------------------------------
source("_targets_setup")


## Create targets and list targets objects -------------------------------------

Expand Down
5 changes: 5 additions & 0 deletions _targets_setup.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Project-wide targets workflow setup ------------------------------------------

## Load libraries and custom functions -----------------------------------------
suppressPackageStartupMessages(source("packages.R"))
for (f in list.files(here::here("R"), full.names = TRUE)) source (f)

0 comments on commit 982abc7

Please sign in to comment.