Skip to content

Commit

Permalink
Demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 15, 2020
1 parent a875344 commit 3d007f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ readr::write_csv(palmerpenguins::penguins, here("inst", "demo-project", "data",
```

These relative paths work regardless of where the associated source file lives inside your project, like analysis projects with data and reports in different subdirectories.
See the included [demo project](https://github.com/r-lib/here/tree/master/inst/demo-project) for an example.

![](https://raw.githubusercontent.com/allisonhorst/stats-illustrations/master/rstats-artwork/here.png)
*Illustration by [Allison Horst](https://github.com/allisonhorst)*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can build a path relative to the top-level directory in order to read or wri
<span class='c'>#&gt; [1] "/home/kirill/git/R/here/inst/demo-project/data/penguins.csv"</span>
<span class='nf'>readr</span><span class='nf'>::</span><span class='nf'><a href='https://readr.tidyverse.org/reference/write_delim.html'>write_csv</a></span><span class='o'>(</span><span class='nf'>palmerpenguins</span><span class='nf'>::</span><span class='nv'><a href='https://allisonhorst.github.io/palmerpenguins/reference/penguins.html'>penguins</a></span>, <span class='nf'>here</span><span class='o'>(</span><span class='s'>"inst"</span>, <span class='s'>"demo-project"</span>, <span class='s'>"data"</span>, <span class='s'>"penguins.csv"</span><span class='o'>)</span><span class='o'>)</span></pre>

These relative paths work regardless of where the associated source file lives inside your project, like analysis projects with data and reports in different subdirectories.
These relative paths work regardless of where the associated source file lives inside your project, like analysis projects with data and reports in different subdirectories. See the included [demo project](https://github.com/r-lib/here/tree/master/inst/demo-project) for an example.

![](https://raw.githubusercontent.com/allisonhorst/stats-illustrations/master/rstats-artwork/here.png) *Illustration by [Allison Horst](https://github.com/allisonhorst)*

Expand Down

0 comments on commit 3d007f9

Please sign in to comment.