Переглянути джерело

Move folder checking code to R/03_check-folders.R

pull/7/head
Garrick Aden-Buie 7 роки тому
джерело
коміт
c05408366c
4 змінених файлів з 7 додано та 6 видалено
  1. +1
    -1
      R/00_base_join.R
  2. +1
    -1
      R/00_base_set.R
  3. +5
    -0
      R/03_check_folders.R
  4. +0
    -4
      README.Rmd

+ 1
- 1
R/00_base_join.R Переглянути файл

@@ -14,7 +14,7 @@ if (!getOption("tidy_verb_anim.functions_loaded", FALSE)) {
source(here::here("R", "02_functions.R"))
}

if (!dir.exists(here::here("images"))) dir.create(here::here("images"))
source(here::here("R", "03_check-folders.R"))

plot_data_join <- function(x, title = "", xlims = xlim(0.5, 5.5), ylims = ylim(-3.5, -0.5)) {
plot_data(x, title) +

+ 1
- 1
R/00_base_set.R Переглянути файл

@@ -14,7 +14,7 @@ if (!getOption("tidy_verb_anim.functions_loaded", FALSE)) {
source(here::here("R", "02_functions.R"))
}

if (!dir.exists(here::here("images"))) dir.create(here::here("images"))
source(here::here("R", "03_check-folders.R"))

# Initialize data processing function ----


+ 5
- 0
R/03_check_folders.R Переглянути файл

@@ -0,0 +1,5 @@
if (!dir.exists(here::here("images"))) dir.create(here::here("images"))
png_path <- here::here("images", "static", "png")
svg_path <- here::here("images", "static", "svg")
if (!dir.exists(png_path)) dir.create(png_path, recursive = TRUE)
if (!dir.exists(svg_path)) dir.create(svg_path, recursive = TRUE)

+ 0
- 4
README.Rmd Переглянути файл

@@ -13,10 +13,6 @@ knitr::opts_chunk$set(
message = FALSE,
cache = TRUE
)
png_path <- file.path("images", "static", "png")
svg_path <- file.path("images", "static", "svg")
if (!dir.exists(png_path)) dir.create(png_path, recursive = TRUE)
if (!dir.exists(svg_path)) dir.create(svg_path, recursive = TRUE)
```

[gganimate]: https://github.com/thomasp85/gganimate#README

Завантаження…
Відмінити
Зберегти