Skip to content

Commit 3dfdf21

Browse files
authored
Merge pull request #16 from inbo/0.0.3
0.0.4
2 parents 758d50b + a44bb59 commit 3dfdf21

25 files changed

Lines changed: 246 additions & 307 deletions

.github/workflows/check_on_branch.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/check_on_main.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches-ignore:
4+
- ghpages
5+
6+
name: "check package with checklist"
7+
8+
jobs:
9+
check-package:
10+
runs-on: ubuntu-24.04
11+
name: check-package
12+
env:
13+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
14+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
15+
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/noble/latest"
16+
permissions:
17+
contents: read
18+
steps:
19+
- name: "Check package with checklist"
20+
uses: inbo/actions/check_pkg@composite
21+
deploy-pages:
22+
name: deploy-gh-pages
23+
runs-on: ubuntu-24.04
24+
needs: check-package
25+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
26+
permissions:
27+
contents: write
28+
steps:
29+
- name: "Tag and deploy gh-pages"
30+
uses: inbo/actions/check_deploy@composite

.zenodo.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"title": "flandersqmd: Auxiliary Function for the Flandersqmd Quarto Extensions",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"license": "GPL-3.0",
55
"upload_type": "software",
66
"description": "<p>Prepare new documents using the Flandersqmd extensions.<\/p>",
77
"keywords": [
88
"corporate identity",
9-
"quarto"
9+
"quarto",
10+
"inbo_version"
1011
],
1112
"access_right": "open",
1213
"language": "eng",
@@ -33,5 +34,6 @@
3334
{
3435
"identifier": "inbo"
3536
}
36-
]
37+
],
38+
"publisher": "Research Institute for Nature and Forest (INBO)"
3739
}

CITATION.cff

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ authors:
99
keywords:
1010
- corporate identity
1111
- quarto
12+
- inbo_version
1213
contact:
1314
- given-names: Thierry
1415
family-names: Onkelinx
@@ -22,4 +23,4 @@ abstract: "Prepare new documents using the Flandersqmd extensions."
2223
identifiers:
2324
- type: url
2425
value: https://inbo.github.io/flandersqmd/
25-
version: 0.0.3
26+
version: 0.0.4

DESCRIPTION

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Package: flandersqmd
22
Title: Auxiliary Function for the Flandersqmd Quarto Extensions
3-
Version: 0.0.3
3+
Version: 0.0.4
44
Authors@R: c(
55
person("Thierry", "Onkelinx", , "thierry.onkelinx@inbo.be", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0001-8804-4216", affiliation = "Research Institute for Nature and Forest (INBO)")),
7-
person("Research Institute for Nature and Forest (INBO)", , , "info@inbo.be", role = c("cph", "fnd"),
7+
person("Research Institute for Nature and Forest (INBO)", , , "info@inbo.be", role = c("cph", "fnd", "pbl"),
88
comment = c(ROR = "00j54wy13"))
99
)
1010
Description: Prepare new documents using the Flandersqmd extensions.
@@ -16,17 +16,19 @@ Depends:
1616
Imports:
1717
assertthat,
1818
checklist (>= 0.5.3),
19+
citeme,
1920
fs,
2021
gert,
22+
gh,
2123
pdftools,
2224
quarto,
2325
yaml
2426
Suggests:
2527
rstudioapi
2628
Additional_repositories: https://inbo.r-universe.dev
27-
Config/checklist/communities: inbo
28-
Config/checklist/keywords: corporate identity; quarto
29+
Config/citeme/communities: inbo
30+
Config/citeme/keywords: corporate identity; quarto; inbo_version
31+
Config/roxygen2/version: 8.0.0
2932
Encoding: UTF-8
3033
Language: en-GB
3134
Roxygen: list(markdown = TRUE)
32-
RoxygenNote: 7.3.3

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ENV QUARTO_VERSION=1.8.27
3434
RUN curl -L -O https://github.com/quarto-dev/quarto-cli/releases/download/v$QUARTO_VERSION/quarto-$QUARTO_VERSION-linux-amd64.deb \
3535
&& dpkg -i quarto-${QUARTO_VERSION}-linux-amd64.deb \
3636
&& quarto install tinytex --update-path \
37+
&& tlmgr update --self \
3738
&& tlmgr install datetime2 emptypage etoolbox fancyhdr fontawesome5 footmisc geometry hyphen-dutch hyphen-french hyphen-german hyperref lastpage multirow parskip pdfpages titlesec tocloft url
3839

3940
## Install fonts

NAMESPACE

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,25 @@ export(add_index)
1010
export(add_recommendations)
1111
export(author2yaml)
1212
export(create_report)
13+
export(get_branches_tags)
1314
export(inbo_website)
1415
export(insert_missing_metadata)
1516
export(post_render)
1617
importFrom(assertthat,assert_that)
1718
importFrom(assertthat,has_name)
19+
importFrom(assertthat,is.count)
1820
importFrom(assertthat,is.flag)
21+
importFrom(assertthat,is.number)
1922
importFrom(assertthat,is.string)
2023
importFrom(assertthat,noNA)
2124
importFrom(checklist,ask_rightsholder_funder)
22-
importFrom(checklist,ask_yes_no)
23-
importFrom(checklist,author2df)
24-
importFrom(checklist,citation_meta)
25-
importFrom(checklist,get_branches_tags)
26-
importFrom(checklist,inbo_org_list)
27-
importFrom(checklist,menu_first)
2825
importFrom(checklist,read_checklist)
29-
importFrom(checklist,use_author)
26+
importFrom(citeme,ask_yes_no)
27+
importFrom(citeme,citation_meta)
28+
importFrom(citeme,inbo_org_list)
29+
importFrom(citeme,individual2df)
30+
importFrom(citeme,menu_first)
31+
importFrom(citeme,select_individual)
3032
importFrom(fs,dir_create)
3133
importFrom(fs,dir_delete)
3234
importFrom(fs,dir_ls)
@@ -38,6 +40,7 @@ importFrom(fs,is_file)
3840
importFrom(fs,path)
3941
importFrom(fs,path_rel)
4042
importFrom(gert,git_find)
43+
importFrom(gh,gh)
4144
importFrom(pdftools,pdf_convert)
4245
importFrom(pdftools,pdf_subset)
4346
importFrom(quarto,quarto_add_extension)

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# flandersqmd 0.0.4
2+
3+
* Use `citeme` instead of `checklist` for citation management.
4+
15
# flandersqmd 0.0.3
26

37
* Create Docker for rendering the examples.

R/add_author.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#' @return The path to the `_quarto.yml` file.
77
#' @export
88
#' @importFrom assertthat assert_that is.flag is.string has_name noNA
9+
#' @importFrom citeme select_individual
910
#' @importFrom fs is_dir is_file path
1011
#' @importFrom yaml read_yaml
1112
add_author <- function(report_path = ".", reviewer = FALSE) {
@@ -23,7 +24,7 @@ add_author <- function(report_path = ".", reviewer = FALSE) {
2324
"No `flandersqmd` entry in `_quarto.yml`" = has_name(yaml, "flandersqmd"),
2425
"No `lang` entry in `_quarto.yml`" = has_name(yaml, "lang")
2526
)
26-
use_author(lang = yaml$lang) |>
27+
select_individual(lang = yaml$lang) |>
2728
author2list() -> extra
2829
if (reviewer) {
2930
yaml$flandersqmd$reviewer <- c(yaml$flandersqmd$reviewer, list(extra))

0 commit comments

Comments
 (0)