-
Notifications
You must be signed in to change notification settings - Fork 0
/
trackdown-example.Rmd
92 lines (64 loc) · 7.44 KB
/
trackdown-example.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
82
83
84
85
86
87
88
89
90
91
92
---
title: "Example trackdown doc"
---
```{r r-chunk-options, echo=FALSE, warning=FALSE}
library(knitr)
knitr::opts_chunk$set(
root.dir = here::here(),
fig.path = here::here("images//"),
echo=FALSE,
include = TRUE,
dev='png',
dpi=300,
warning=FALSE
)
```
```{r upload.download, eval=FALSE}
# Run these in the console; not as part of your R Markdown
# Add your file the first time
trackdown::upload_file(file = here::here("trackdown-test.Rmd"),
gpath = "_00_TRACKDOWN/", hide_code = TRUE)
# Do some collaborative editing on GoogleDrive and then download the changes
# Make sure to Accept the change on GoogleDrive. If they are just "suggestions", they won't be pulled down.
trackdown::download_file(file = here::here("trackdown-test.Rmd"),
gpath = "_00_TRACKDOWN/")
# If you make local changes to the Rmd and want to push up to GoogleDrive then use this
trackdown::update_file(file = here::here("trackdown-test.Rmd"),
gpath = "_00_TRACKDOWN/", hide_code = TRUE)
```
# FAQs re trackdown
* *Do I need to give tidyverse permission to view all my Googledrive files?* Yes.
* *Can I restrict the scope? like add an expiration date?* I didn't see how within trackdown.
* *Can I revoke that permission?* Yes. Delete the token that is stored on your computer.
* *Where is the token?* Type this `gargle::gargle_oauth_sitrep()` to find all the tokens.
* *Can I show the figures?* I don't think so?
* *Does it work with Quarto files?* Go to the GitHub for trackdown and look in the issues. There is a quarto branch that you can install.
# INTRODUCTION
Changes in intro. Add a line to the intro. consectetur adipiscing elit. Sed dictum ipsum vel erat lobortis, et rhoncus sapien luctus. Aenean volutpat, tortor ac sodales malesuada, ex libero accumsan lectus, a pretium risus purus eu felis. Donec nec fringilla dolor. Pellentesque sagittis mi sit amet nibh sollicitudin, in commodo enim cursus. Proin ac dolor nunc. Mauris consectetur magna at ligula cursus facilisis. Fusce pulvinar lacus nec erat vestibulum, sed tincidunt arcu feugiat. Maecenas eget magna sed nunc molestie placerat id at ligula. Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel.
@fig-seals proin ac dolor nunc. Mauris consectetur magna at ligula cursus facilisis. Fusce pulvinar lacus nec erat vestibulum, sed tincidunt arcu feugiat. Maecenas eget magna sed nunc molestie placerat id at ligula. Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel.
```{r}
#| label: fig-seals
#| fig-cap: "Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel."
include_graphics(here::here("images", "seals.jpg"))
```
## SAMPLING LOCATIONS
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dictum ipsum vel erat lobortis, et rhoncus sapien luctus. Aenean volutpat, tortor ac sodales malesuada, ex libero accumsan lectus, a pretium risus purus eu felis. Donec nec fringilla dolor. Pellentesque sagittis mi sit amet nibh sollicitudin, in commodo enim cursus. Proin ac dolor nunc. Mauris consectetur magna at ligula cursus facilisis. Fusce pulvinar lacus nec erat vestibulum, sed tincidunt arcu feugiat. Maecenas eget magna sed nunc molestie placerat id at ligula. Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel (@fig-plot).
```{r}
#| label: fig-plot
#| fig-cap: "Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel."
plot(1:11)
```
## ANOTHER CHAPTER
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dictum ipsum vel erat lobortis, et rhoncus sapien luctus. Aenean volutpat, tortor ac sodales malesuada, ex libero accumsan lectus, a pretium risus purus eu felis. Donec nec fringilla dolor. Pellentesque sagittis mi sit amet nibh sollicitudin, in commodo enim cursus. Proin ac dolor nunc. Mauris consectetur magna at ligula cursus facilisis. Fusce pulvinar lacus nec erat vestibulum, sed tincidunt arcu feugiat. Maecenas eget magna sed nunc molestie placerat id at ligula. Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel.
# YET ANOTHER
*Lorem ipsum dolor sit amet*, consectetur adipiscing elit. Sed dictum ipsum vel erat lobortis, et rhoncus sapien luctus. Aenean volutpat, tortor ac sodales malesuada, ex libero accumsan lectus, a pretium risus purus eu felis. Donec nec fringilla dolor. Pellentesque sagittis mi sit amet nibh sollicitudin, in commodo enim cursus. Proin ac dolor nunc. Mauris consectetur magna at ligula cursus facilisis. Fusce pulvinar lacus nec erat vestibulum, sed tincidunt arcu feugiat. Maecenas eget magna sed nunc molestie placerat id at ligula. Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel.
## AND MORE
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dictum ipsum vel erat lobortis, et rhoncus sapien luctus. Aenean volutpat, tortor ac sodales malesuada, ex libero accumsan lectus, a pretium risus purus eu felis. Donec nec fringilla dolor. Pellentesque sagittis mi sit amet nibh sollicitudin, in commodo enim cursus. Proin ac dolor nunc. Mauris consectetur magna at ligula cursus facilisis. Fusce pulvinar lacus nec erat vestibulum, sed tincidunt arcu feugiat. Maecenas eget magna sed nunc molestie placerat id at ligula. Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel.
```{r}
#| label: fig-coho
#| fig-cap: "Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel."
include_graphics(here::here("images", "coho.jpg"))
```
Lorem ipsum dolor sit amet, consectetur adipiscing elit (@fig-coho). Sed dictum ipsum vel erat lobortis, et rhoncus sapien luctus. Aenean volutpat, tortor ac sodales malesuada, ex libero accumsan lectus, a pretium risus purus eu felis. Donec nec fringilla dolor. Pellentesque sagittis mi sit amet nibh sollicitudin, in commodo enim cursus. Proin ac dolor nunc. Mauris consectetur magna at ligula cursus facilisis. Fusce pulvinar lacus nec erat vestibulum, sed tincidunt arcu feugiat. Maecenas eget magna sed nunc molestie placerat id at ligula. Duis pharetra, ligula vel hendrerit tincidunt, orci dui elementum neque, eu efficitur sem turpis sed leo. Vestibulum volutpat augue tortor, eget vestibulum leo lacinia vel.
Proin volutpat elit suscipit, placerat ligula ac, rutrum erat. Maecenas nec elit eu purus tristique finibus. Pellentesque pretium nisi et ullamcorper ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum in ligula in mi accumsan pellentesque at accumsan turpis. Nam lorem nisi, ultricies ut condimentum quis, pharetra nec metus. Cras eleifend auctor enim, ac faucibus sem facilisis vel.
# THE END