You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/_handle_dependencies_R.qmd
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,11 @@ Now you can write your contribution, using all the packages you need. Install th
36
36
renv::install("ggplot2") # or equivalently install.packages("ggplot2")
37
37
```
38
38
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
40
40
41
41
```r
42
-
install.packages("remotes")
43
-
remotes::install_github("rstudio/gt")
42
+
renv::install("rstudio/gt")
44
43
```
45
-
46
44
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:
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.
Copy file name to clipboardExpand all lines: site/_handle_dependencies_python.qmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,4 +51,4 @@ Currently and differently from what we provide for R users, we do not have imple
51
51
52
52
::: {.callout-tip title="`requirements.txt`"}
53
53
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.
Copy file name to clipboardExpand all lines: site/guidelines-authors.qmd
+28-26Lines changed: 28 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -72,11 +72,9 @@ When you fork a GitHub repository – whether it is a classic repository or a te
72
72
:::
73
73
74
74
::: {.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.
76
76
:::
77
77
78
-
In summary, before clicking on *Create repository*, you should have the options documented in @fig-clone-template.
79
-
80
78
{#fig-clone-template width="100%"}
81
79
82
80
::: {.callout-note title="Using Gitlab"}
@@ -107,38 +105,37 @@ quarto add computorg/computo-quarto-extension
107
105
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).
108
106
:::
109
107
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:
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:
123
110
124
111
```bash
125
112
# will render both to html and PDF
126
113
quarto render
127
114
```
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
+
:::
128
125
129
126
#### Metadata of your contribution
130
127
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:
132
129
133
130
```yml
134
131
project:
135
132
type: default
136
133
render:
137
-
- template-computo-R.qmd
134
+
- template-computo-LANG.qmd
138
135
- README.qmd
139
136
140
137
title: "Template for contribution to Computo"
141
-
subtitle: "Example dedicated to `R` users"
138
+
subtitle: "Example dedicated to `LANG` users"
142
139
author:
143
140
- name: Jane Doe
144
141
corresponding: true
@@ -177,6 +174,12 @@ format:
177
174
178
175
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.
179
176
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
+
180
183
### Setup dependencies {#sec-dependencies}
181
184
182
185
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.
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.
271
274
:::
272
275
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}
276
277
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.
278
279
279
280
::: {.callout-caution}
280
281
## 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).
283
283
:::
284
284
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.
286
288
287
289
For more details about the review process, see the [guidelines for reviewers](/site/guidelines-reviewers.qmd).
0 commit comments