Skip to content

Commit 58d5ed7

Browse files
committed
another pass on guidelines-authors, fixing some elements of issue #51
1 parent 8d57f3b commit 58d5ed7

File tree

3 files changed

+36
-32
lines changed

3 files changed

+36
-32
lines changed

site/_handle_dependencies_R.qmd

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,11 @@ Now you can write your contribution, using all the packages you need. Install th
3636
renv::install("ggplot2") # or equivalently install.packages("ggplot2")
3737
```
3838

39-
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:
39+
Non-CRAN packages (*e.g.* Github packages) can be used. For instance, if you want to install the development version of *e.g.* the **gt** package hosted by `rstudio` GitHub account, you would do
4040

4141
```r
42-
install.packages("remotes")
43-
remotes::install_github("rstudio/gt")
42+
renv::install("rstudio/gt")
4443
```
45-
4644
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:
4745

4846
```r
@@ -51,7 +49,11 @@ renv::snapshot()
5149
```
5250

5351
::: {.callout-warning title="The `renv.lock` file"}
54-
The `renv.lock` should be versioned with git. Other files that `renv::snapshot()` might produce should be listed under `.gitignore` and therefore not put under versioning.
52+
The `renv.lock` should be versioned with git. Other files that `renv::snapshot()` might produce should be listed under `.gitignore` and therefore not put under versioning (which is done in the default template version of `.gitignore`).
53+
:::
54+
55+
::: {.callout-tip title=" R version"}
56+
A seamless workflow has been reported with `renv` when using `R` version `>= 4.5.1`. We recommand to update your system to this version or later.
5557
:::
5658

5759
More details for using **renv** can be found:

site/_handle_dependencies_python.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ Currently and differently from what we provide for R users, we do not have imple
5151

5252
::: {.callout-tip title="`requirements.txt`"}
5353
If your work exclusively depends on packages installed from `pip` and you are used to listing dependencies in a `requirements.txt` file, you can ship this file instead of the `environment.yml` file and our CI/CD scripts should run smoothly.
54-
:::
54+
:::

site/guidelines-authors.qmd

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,9 @@ When you fork a GitHub repository – whether it is a classic repository or a te
7272
:::
7373

7474
::: {.callout-caution title="Public repository"}
75-
The paper will be automatically published online using GitHub pages. This is possible only with public repositories (which is the default behavior when you initialize your repository from this template). It is fine to keep your repository private during the writing phase. However, we ask you to set it public at the submission stage; so that the paper can be rendered and published online for the reviewers.
75+
The paper will be automatically published online using GitHub pages. This is possible only with public repositories (which is the default behavior when you initialize your repository from this template, see @fig-clone-template). If your prefer, it is fine to keep your repository private during the writing phase. However, we ask you to set it public at the submission stage; so that the paper can be rendered and published online for the reviewers.
7676
:::
7777

78-
In summary, before clicking on *Create repository*, you should have the options documented in @fig-clone-template.
79-
8078
![Forking a GitHub template.](/assets/img/clone-template.png){#fig-clone-template width="100%"}
8179

8280
::: {.callout-note title="Using Gitlab"}
@@ -107,38 +105,37 @@ quarto add computorg/computo-quarto-extension
107105
If you are collaborating with others when writing your contributions, **each collaborator** needs to perform these same three steps (clone the repository, install Quarto and install the Computo Quarto extension).
108106
:::
109107

110-
### Write your contribution {#sec-writing}
111-
112-
There are mainly two files you are expected to modify in your repository for writing your contribution: `template-computo-LANG.qmd` (where LANG is to be replaced with either R, Python or Julia) and `_quarto.yml`.
113-
114-
#### Main content of your contribution
115-
116-
The main body of your paper (starting with the *Introduction* section) should be written in the `template-computo-LANG.qmd` following the formatting suggestions therein.
117-
118-
::: {.callout-note title="Local compilation"}
119-
Make sure that you are able to build your manuscript as a standard notebook on your system before proceeding to the next step.
120-
:::
121-
122-
To build your document (both in PDF and HTML by default), you can run the command `quarto render`, e.g. for the template:
108+
::: {.callout-important title="Local compilation"}
109+
Before proceeding to the next step, make sure that you are able to build your manuscript as a standard notebook on your system by running the following command in a terminal:
123110

124111
```bash
125112
# will render both to html and PDF
126113
quarto render
127114
```
115+
:::
116+
117+
### Write your contribution {#sec-writing}
118+
119+
There are mainly two files you are expected to modify in your repository for writing your contribution: `template-computo-LANG.qmd` (where LANG is to be replaced with either R, Python or Julia) and `_quarto.yml`. While the first can be renamed (e.g, `submission-YYYYMM-firstAuthor-keyword.qmd`), the second must remain `_quarto.yml` as it contains metadata about your contribution shared between project's files.
120+
121+
::: {.callout-tip}
122+
## Editing your project
123+
You can edit your project using any text editor, but we recommend using an IDE such as [vsCode](https://code.visualstudio.com/) or [RStudio](https://posit.co/download/rstudio-desktop/). These IDEs provide syntax highlighting, code completion, and other features that make editing Quarto files easier.
124+
:::
128125

129126
#### Metadata of your contribution
130127

131-
To customise title, authors, date, abstract and so on, you should modify the `_quarto.yml` file. By default, it looks like this:
128+
All yaml metadata should preferably be placed in the `_quarto.yml` file. To customise title, authors, date, abstract and so on, you should modify `_quarto.yml` which by default looks like this:
132129

133130
```yml
134131
project:
135132
type: default
136133
render:
137-
- template-computo-R.qmd
134+
- template-computo-LANG.qmd
138135
- README.qmd
139136

140137
title: "Template for contribution to Computo"
141-
subtitle: "Example dedicated to `R` users"
138+
subtitle: "Example dedicated to `LANG` users"
142139
author:
143140
- name: Jane Doe
144141
corresponding: true
@@ -177,6 +174,12 @@ format:
177174
178175
You can customize most of the entries in that file except `project:`, `published:`, `draft:`, `license:` and `format:`. If your contribution is accepted for publication, the associate editors will modify parts of this file accordingly.
179176

177+
#### Main content of your contribution
178+
179+
The main content of your contribution must be written in the `template-computo-LANG.qmd` file (see formatting suggestion therein). To compile your contribution, run `quarto render` anytime needed.
180+
181+
We also provide a `README.qmd` file as part of the project. This file uses shortcodes to extract metadata from `_quarto.yml` and generate a `README.md` that will be displayed on the main page of your GitHub repository. The `README.md` file is rendered automatically when you run `quarto render` at the root of your repository. You may modify the `README.qmd` file if you wish, at your own risk. If your submission is accepted, it will be standardized by the Computo team.
182+
180183
### Setup dependencies {#sec-dependencies}
181184

182185
The next step is to inform Computo of the other packages, tools and environment that your paper might depend upon. It is important to freeze their versions to ensure reproducibility. This step is inherently handled differently whether you are an R, Python or Julia user.
@@ -270,19 +273,18 @@ sudo apt-get install -y libblas-dev liblapack-dev
270273
Remember that the GitHub runner uses Linux Ubuntu and therefore software installation is achieved through `apt-get`. Furthermore, you must precede calls to `apt-get` with the word `sudo` to indicate that you wish to run this command as an administrator.
271274
:::
272275

273-
### Submit your manuscript {#sec-submitting}
274-
275-
Once you have finished writing your contribution, render it locally by running `quarto render` in your project folder. This will generate both HTML and PDF files if everything is set up correctly.
276+
### Push to GitHub {#sec-ppush-git}
276277

277-
After confirming that the document builds successfully, push your changes to GitHub. The continuous integration workflow will automatically build and publish the HTML and PDF versions online.
278+
Once you have finished part of your writing and confirmed that the document builds successfully locally, you can push your changes to GitHub as you would with any Git project. If everything is set up correctly, the continuous integration workflow will automatically build and publish the HTML and PDF versions online.
278279

279280
::: {.callout-caution}
280281
## Ignored files
281-
Make sure to check and update the `.gitignore` file in your repository. In particular,
282-
if you changed the name of some files in the repository (like the main `.qmd` file), make propagate this change to the `.gitignore` file in order to avoid pushing binary files to the repository (such as the PDF file).
282+
Make sure to check and update the `.gitignore` file in your repository. In particular, if you changed the name of some files in the repository (like the main `.qmd` file), make propagate this change to the `.gitignore` file in order to avoid pushing binary files to the repository (such as the PDF file).
283283
:::
284284

285-
To submit your manuscript for review, upload the generated PDF to the [OpenReview](https://openreview.net/group?id=Computo) platform. This will start both the scientific and reproducibility review processes.
285+
### Submit your manuscript {#sec-submitting}
286+
287+
Once you are satisfied with your manuscript, you can submit it for review. To do so, upload the generated PDF to the [OpenReview](https://openreview.net/group?id=Computo) platform and indicate the corresponding Git repository. This will initiate both the scientific and reproducibility review processes.
286288

287289
For more details about the review process, see the [guidelines for reviewers](/site/guidelines-reviewers.qmd).
288290

0 commit comments

Comments
 (0)