Skip to content

Commit

Permalink
Fix-up reprex section
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed May 6, 2023
1 parent 899285b commit e373dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 16-synthesis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ There are many forums where you can do this, including:
- Software development platforms such as GitHub, which hosts issue trackers for the majority of R-spatial packages and also, increasingly, inbuilt discussion pages such as that created to encourage discussion (not just bug reporting) around the **sfnetworks** package (see [luukvdmeer/sfnetworks/discussions](https://github.com/luukvdmeer/sfnetworks/discussions/))
- Online chat rooms and forums associated with communities such as the [rOpenSci](https://ropensci.org/blog/2022/09/13/contributing-ropensci/) and the [geocompx](https://geocompx.org) community (which has a [Discord server](https://discord.gg/PMztXYgNxp) where you can ask questions), of which this book is a part.

### How to ask a good question with a reproducible example {#reprex}
### Reproducible examples with **reprex** {#reprex}

In terms asking a good question, a clearly stated questions supported by an accessible and fully reproducible example is key.
It is also helpful, after showing the code that 'did not work' from the user's perspective, to explain what you would like to see.
Expand Down Expand Up @@ -212,7 +212,7 @@ plot(st_geometry(world), col = "green", bg = "lightblue")
```


```{r 16-synthesis-reprex, out.width="49%", fig.show="hold", fig.cap="A map of the world with green land, illustrating a question with a reproducible example (left) and the solution (right)."}
```{r 16-synthesis-reprex, out.width="49%", fig.show="hold", fig.cap="A map of the world with green land, illustrating a question with a reproducible example (left) and the solution (right).", echo=FALSE, message=FALSE, warning=FALSE}
library(sf)
library(spData)
plot(st_geometry(world), col = "green")
Expand Down

0 comments on commit e373dfe

Please sign in to comment.