generated from curso-r/main-rcpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
81 lines (60 loc) · 1.85 KB
/
README.Rmd
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(magrittr)
turma <- "202011-rcpp"
```
## Configuração inicial
#### Passo 1: Instalar pacotes
```{r, eval=FALSE}
install.packages("remotes")
# instalar pacote da Curso-R
remotes::install_github("curso-r/CursoR")
```
#### Passo 2: Criar um projeto do RStudio
Faça um projeto do RStudio para usar durante todo o curso e em seguida abra-o.
```{r, eval = FALSE}
install.packages("usethis")
usethis::create_project("caminho_ate_o_projeto/nome_do_projeto")
```
#### Passo 3: Baixar o material
Certifique que você está dentro do projeto criado no passo 2 e rode o código abaixo.
**Observação**: Assim que rodar o código abaixo, o programa vai pedir uma escolha de opções. Escolha o número correspondente ao curso de Rcpp!
```{r, eval=FALSE}
# Baixar ou atualizar material do curso
CursoR::atualizar_material()
```
## Slides
```{r, echo = FALSE}
knitr::kable(
tibble::tibble(
slide = CursoR:::list_github_files(turma, "slides/", "html") %>%
stringr::str_subset("(/img/|cache)", negate = TRUE),
link = paste0("https://curso-r.github.io/", turma, "/", slide)
) %>%
dplyr::filter(!stringr::str_detect(slide, "_files/"))
%>%
dplyr::mutate(
slide_pdf = CursoR:::list_github_files(turma, "slides/", "pdf"),
link_pdf = paste0("<a href='https://curso-r.github.io/", turma, "/", slide_pdf, "'> PDF </a>")
) %>%
dplyr::select(-slide_pdf),
col.names = c("Slide", "Link", "Link em PDF")
)
```
## Scripts usados em aula
```{r, echo = FALSE}
nome_pasta <- "exemplos/"
knitr::kable(
tibble::tibble(
script = list.files(nome_pasta, pattern = ".cpp"),
link = paste0("https://curso-r.github.io/", turma, "/", nome_pasta, script)
)
)
```