Skip to content

Commit 22fe4f0

Browse files
committed
Use markdown syntax to show r code instead of quarto.
1 parent 3338861 commit 22fe4f0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

site/guidelines-authors.qmd

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,32 +65,28 @@ The next step is to inform Computo of the other packages or tools that your pape
6565

6666
For the R community, Computo relies on the [**renv**](https://rstudio.github.io/renv/articles/renv.html) package manager to setup a reproducible environment that handles `R` dependencies. Setting up **renv** for use within your repository requires the following steps. First,
6767

68-
```{r}
69-
#| eval: false
68+
```r
7069
# Initialize your repo to work with renv
7170
renv::init()
7271
```
7372

7473
will set up your repository for using **renv**. Then, install the required dependencies as usual (via `install.packages()` or via the RStudio IDE) or using **renv** built-in `install()` function:
7574

76-
```{r}
77-
#| eval: false
75+
```r
7876
# Install packages you need
7977
renv::install("ggplot2") # or equivalently install.packages("ggplot2")
8078
```
8179

8280
Non-CRAN packages (*e.g.* Github packages) can be used. To install such packages, you need to first install the **remotes** package. Then, if you want to install the development version of *e.g.* the **gt** package hosted by `rstudio` GitHub account (useful for nicely and easily formatting tables btw), you would do:
8381

84-
```{r}
85-
#| eval: false
82+
```r
8683
install.packages("remotes")
8784
remotes::install_github("rstudio/gt")
8885
```
8986

9087
Once you are done, you need to freeze the environment and package versions that are going to be used to run the calculations within your paper. This is achieved via:
9188

92-
```{r}
93-
#| eval: false
89+
```r
9490
# Register environment and package versions
9591
renv::snapshot()
9692
```

0 commit comments

Comments
 (0)