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: CONTRIBUTING.md
+31-5Lines changed: 31 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,11 @@ Note also that any dependency packages needed by the packages listed in the [DES
46
46
47
47
Apart from the above R packages, you will also need a working installation of TinyTeX, which is an external open-source software package that is needed to render protocols to PDF format (i.e. when you run `protocolhelper::render_protocol()` see [Workflow](#workflow)).
48
48
49
-
To install this, we recommend to follow the [installation instructions](https://github.com/inbo/INBOmd/#installation) provided by the `INBOmd` R package.
50
-
Please make sure to install this from an R session that runs outside of the RStudio `protocolsource.Rproj`.
51
-
So, close the RStudio project and any other R sessions and start the most recent version of R that is installed on your system and copy-paste the installation instructions in the R console.
49
+
To install this:
50
+
51
+
- close the RStudio project and any other R sessions and start the most recent version of R that is installed on your system
52
+
53
+
- follow the [installation instructions](https://github.com/inbo/INBOmd/#installation) provided by the `INBOmd` R package and copy-paste the installation instructions in the R console.
52
54
53
55
## `(R)markdown` syntax and learning `Rmarkdown`
54
56
@@ -276,13 +278,16 @@ This will allow you to check the resulting output locally.
276
278
277
279
### From an existing docx protocol
278
280
281
+
Even if you are converting an older published protocol, we recommend leaving the date field to it'sdefault value (currentdate) andinsteadmentioninthe`NEWS.md`filethatthisisaconversionfromprotocolso-and-sopublishedfirstondatesuch-and-such.
282
+
283
+
279
284
```r
280
285
library(protocolhelper)
281
286
create_sfp(title="Klassieke vegetatieopname in een proefvlak aan de hand van visuele inschattingen van bedekking van soorten in (semi-)terrestrische vegetatie",
282
287
short_title="vegopname terrest",
283
288
authors="De Bie, Els",
284
289
orcids="0000-0000-1234-5678",
285
-
date = "2016-07-19",
290
+
date="`r Sys.Date()`",
286
291
reviewers="Hans Van Calster, Lieve Vriens, Jan Wouters, Wouter Van Gompel, Els Lommelen",
287
292
file_manager="Hans Van Calster",
288
293
theme="vegetation",
@@ -296,6 +301,8 @@ create_sfp(title = "Klassieke vegetatieopname in een proefvlak aan de hand van v
296
301
297
302
### From a new template
298
303
304
+
For a field protocol (sfp) (you need to specify a theme):
305
+
299
306
```r
300
307
library(protocolhelper)
301
308
create_sfp(title="titel van het protocol",
@@ -313,7 +320,7 @@ create_sfp(title = "titel van het protocol",
313
320
render=FALSE)
314
321
```
315
322
316
-
Alternatively, for a project-specific protocol:
323
+
Alternatively, for a project-specific protocol (you need to specify a project_name):
0 commit comments