Skip to content

Commit 1da9c83

Browse files
Merge branch 'main' of https://github.com/inbo/protocolsource into spp-001-nl
2 parents b38d6f9 + b413229 commit 1da9c83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1888
-412
lines changed

.github/workflows/generate-artifact-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Query dependencies
3232
run: |
33-
install.packages('remotes')
33+
install.packages('remotes', type = "source")
3434
saveRDS(remotes::dev_package_deps(dependencies = NA), ".github/depends.Rds", version = 2)
3535
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
3636
shell: Rscript {0}
@@ -49,8 +49,8 @@ jobs:
4949
5050
- name: Install dependencies
5151
run: |
52-
remotes::install_deps(dependencies = NA) #fails to install protocolhelper
53-
remotes::install_github("inbo/protocolhelper")
52+
remotes::install_deps(dependencies = NA, type = "source") #fails to install protocolhelper
53+
remotes::install_github("inbo/protocolhelper", type = "source")
5454
shell: Rscript {0}
5555

5656
- name: Session info

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ vignettes/*.pdf
4242

4343
# Other
4444
docs/
45+
from_docx/
4546
css/
4647
_bookdown_files/

.zenodo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
"affiliation": "Research Institute for Nature and Forest",
6767
"type": "Researcher",
6868
"orcid": "0000-0001-7679-743X"
69+
},
70+
{
71+
"name": "Scheers, Kevin",
72+
"affiliation": "Research Institute for Nature and Forest",
73+
"type": "Researcher",
74+
"orcid": "0000-0002-4756-4247"
6975
}
7076
]
7177
}

CONTRIBUTING.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ Note also that any dependency packages needed by the packages listed in the [DES
4646

4747
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)).
4848

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.
5254

5355
## `(R)markdown` syntax and learning `Rmarkdown`
5456

@@ -276,13 +278,16 @@ This will allow you to check the resulting output locally.
276278
277279
### From an existing docx protocol
278280
281+
Even if you are converting an older published protocol, we recommend leaving the date field to it's default value (current date) and instead mention in the `NEWS.md` file that this is a conversion from protocol so-and-so published first on date such-and-such.
282+
283+
279284
```r
280285
library(protocolhelper)
281286
create_sfp(title = "Klassieke vegetatieopname in een proefvlak aan de hand van visuele inschattingen van bedekking van soorten in (semi-)terrestrische vegetatie",
282287
short_title = "vegopname terrest",
283288
authors = "De Bie, Els",
284289
orcids = "0000-0000-1234-5678",
285-
date = "2016-07-19",
290+
date = "`r Sys.Date()`",
286291
reviewers = "Hans Van Calster, Lieve Vriens, Jan Wouters, Wouter Van Gompel, Els Lommelen",
287292
file_manager = "Hans Van Calster",
288293
theme = "vegetation",
@@ -296,6 +301,8 @@ create_sfp(title = "Klassieke vegetatieopname in een proefvlak aan de hand van v
296301

297302
### From a new template
298303

304+
For a field protocol (sfp) (you need to specify a theme):
305+
299306
```r
300307
library(protocolhelper)
301308
create_sfp(title = "titel van het protocol",
@@ -313,7 +320,7 @@ create_sfp(title = "titel van het protocol",
313320
render = FALSE)
314321
```
315322

316-
Alternatively, for a project-specific protocol:
323+
Alternatively, for a project-specific protocol (you need to specify a project_name):
317324

318325
```r
319326
library(protocolhelper)
@@ -329,6 +336,25 @@ create_spp(title = "Bodemstalen nemen",
329336
render = FALSE)
330337
```
331338

339+
Or for a standard operating procedure (similarly for sip or sap; no need to specify theme or project_name):
340+
341+
```r
342+
library(protocolhelper)
343+
create_sop(title = "titel van het protocol",
344+
subtitle = "optionele subtitel",
345+
short_title = "korte titel",
346+
authors = c("Achternaam1, Voornaam1", "Achternaam2, voornaam2"),
347+
orcids = c("0000-0000-1234-5678", "0000-0000-1234-8765"),
348+
date = "`r Sys.Date()`",
349+
reviewers = "Voornaam Naam, ...",
350+
file_manager = "Voornaam Naam",
351+
language = "nl",
352+
from_docx = NULL,
353+
protocol_number = NULL,
354+
render = FALSE)
355+
```
356+
357+
332358
## <a name="parameterized"></a>What to do in case of parameterized protocols?
333359

334360
See [the bookdown manual](https://bookdown.org/yihui/rmarkdown/parameterized-reports.html) for a general explanation about parameterized reports.

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Roxygen: list(markdown = TRUE)
2121
RoxygenNote: 7.1.1
2222
Remotes:
2323
github::inbo/protocolhelper,
24-
github::inbo/checklist
24+
github::inbo/checklist,
25+
github::inbo/inbodb
2526
Imports:
2627
checklist,
2728
dplyr,

NEWS.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
### First version of protocol: sfp-406-nl
2+
3+
- Title: Vegetatieopname en LSVI-bepaling *Luronium natans*
4+
- Published on: 2023-06-21
5+
- Version number: 2023.06
6+
- Link to this version: [sfp-406-nl version 2023.06](2023.06/index.html)
7+
8+
### Update of protocol: sfp-403-nl
9+
10+
- Title: Vegetatieopname en LSVI-bepaling habitat 3260
11+
- Published on: 2023-06-20
12+
- Version number: 2023.05
13+
- Link to this version: [sfp-403-nl version 2023.05](2023.05/index.html)
14+
15+
### First version of protocol: sfp-113-nl
16+
17+
- Title: Bepaling doorzicht waterkolom oppervlaktewater op basis van de Secchi-diepte
18+
- Published on: 2023-06-20
19+
- Version number: 2023.04
20+
- Link to this version: [sfp-113-nl version 2023.04](2023.04/index.html)
21+
122
### First version of protocol: sfp-401-nl
223

324
- Title: Klassieke vegetatieopname in een proefvlak aan de hand van visuele inschattingen van bedekking van soorten in (semi-)terrestrische vegetatie

0 commit comments

Comments
 (0)