-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_targets.R
More file actions
47 lines (45 loc) · 1.56 KB
/
Copy path_targets.R
File metadata and controls
47 lines (45 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# _targets.R (opcional)
library(targets)
library(here)
tar_option_set(
packages = c(
"tidyverse", "rgamer", "ggplot2", "dplyr", "readr",
"janitor", "glue", "patchwork", "paletteer", "ggtext",
"beautyxtrar", "extrafont", "showtext", "sysfonts",
"kableExtra", "webshot", "webshot2", "flextable", "magick", "grid",
"shiny", "bslib"
)
)
list(
# Executa o script principal
tar_target(run_main, {
source(here::here("main.R"))
# lista os arquivos que o main.R gera
c(
here::here("figuras","figura_3.pdf"),
here::here("figuras","figura_4.pdf"),
here::here("figuras","figura_18.pdf"),
here::here("figuras","figura_19.pdf"),
here::here("figuras","figura_20.pdf"),
here::here("figuras","figura_20a.pdf"),
here::here("figuras","figura_20b.pdf"),
here::here("figuras","figura_21.pdf"),
here::here("figuras","figura_22.pdf"),
here::here("tabelas","tabela_1.pdf"),
here::here("tabelas","tabela_2.pdf"),
here::here("tabelas","tabela_3.png"),
here::here("tabelas","tabela_3.tex"),
here::here("tabelas","tabela_4.png"),
here::here("tabelas","tabela_4.tex"),
here::here("tabelas","tabela_5.png"),
here::here("tabelas","tabela_5.tex"),
here::here("tabelas","tabela_6.png"),
here::here("tabelas","tabela_6.tex"),
here::here("tabelas","tabela_7.png"),
here::here("tabelas","tabela_7.tex"),
here::here("tabelas","tabela_8.png"),
here::here("tabelas","tabela_8.tex"),
here::here("tabelas","tabela_9.tex")
)
}, format = "file")
)