Skip to content

Commit

Permalink
Merge pull request #97 from inbo/v0.4.8
Browse files Browse the repository at this point in the history
V0.4.8
  • Loading branch information
hansvancalster authored Jan 10, 2023
2 parents cea8c37 + 8fc5e89 commit 04337a0
Show file tree
Hide file tree
Showing 80 changed files with 2,012 additions and 448 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check_on_different_r_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@ jobs:
ORCID_TOKEN: ${{ secrets.ORCID_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-tinytex@v2
- run: tlmgr --version

- name: Query dependencies
run: |
install.packages('remotes')
Expand Down
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "protocolhelper: Helper Functions to Manage Protocols",
"version": "0.4.7",
"version": "0.4.8",
"description": "Helper functions to manage INBO protocols.",
"creators": [
{
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contact:
- email: [email protected]
name: Research Institute for Nature and Forest
title: 'protocolhelper: Helper Functions to Manage Protocols'
version: 0.4.7
version: 0.4.8
abstract: Helper functions to manage INBO protocols.
license: GPL-3.0
type: software
Expand Down
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: protocolhelper
Title: Helper Functions to Manage Protocols
Version: 0.4.7
Version: 0.4.8
Authors@R: c(
person("Hans", "Van Calster", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-8595-8426")),
Expand Down Expand Up @@ -30,8 +30,10 @@ Imports:
knitr,
purrr,
R6,
reactable,
rmarkdown,
rprojroot,
slickR,
stringr,
xfun,
xml2,
Expand All @@ -48,5 +50,5 @@ Encoding: UTF-8
Language: en-GB
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.2
RoxygenNote: 7.2.3
SystemRequirements: Pandoc (>= 2.0.0)
7 changes: 6 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export(create_sip)
export(create_sop)
export(create_spp)
export(get_path_to_protocol)
export(get_protocol_type)
export(get_protocolnumbers)
export(get_short_titles)
export(get_version_number)
export(increment_version_number)
export(insert_protocolsection)
export(protocol_css)
export(protocolcheck)
export(render_protocol)
export(update_protocol)
Expand All @@ -36,6 +37,7 @@ importFrom(assertthat,noNA)
importFrom(assertthat,validate_that)
importFrom(bookdown,gitbook)
importFrom(bookdown,markdown_document2)
importFrom(bookdown,pdf_book)
importFrom(bookdown,render_book)
importFrom(checklist,clean_git)
importFrom(checklist,new_branch)
Expand Down Expand Up @@ -99,6 +101,7 @@ importFrom(stringr,str_subset)
importFrom(utils,file_test)
importFrom(utils,head)
importFrom(utils,tail)
importFrom(utils,write.csv)
importFrom(xfun,read_utf8)
importFrom(xfun,write_utf8)
importFrom(xml2,read_xml)
Expand All @@ -110,11 +113,13 @@ importFrom(yaml,as.yaml)
importFrom(yaml,read_yaml)
importFrom(ymlthis,as_yml)
importFrom(ymlthis,use_index_rmd)
importFrom(ymlthis,use_output_yml)
importFrom(ymlthis,use_yml_file)
importFrom(ymlthis,yml_author)
importFrom(ymlthis,yml_bookdown_opts)
importFrom(ymlthis,yml_date)
importFrom(ymlthis,yml_discard)
importFrom(ymlthis,yml_empty)
importFrom(ymlthis,yml_output)
importFrom(ymlthis,yml_replace)
importFrom(ymlthis,yml_toplevel)
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# protocolhelper 0.4.8

## Minor changes

* various improvements to website homepage, including Dutch and English version

## Bug fixes

* fixed bug in passing metadata to `pandoc`

# protocolhelper 0.4.7

## Minor changes
Expand Down
1 change: 1 addition & 0 deletions R/add_captions.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#' @importFrom assertthat is.string
#'
#' @export
#' @family convert
#'
add_captions <- function(
from,
Expand Down
1 change: 1 addition & 0 deletions R/add_dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#' @importFrom purrr transpose
#'
#' @export
#' @family creation
#'
#' @examples
#' \dontrun{
Expand Down
6 changes: 4 additions & 2 deletions R/add_subprotocols.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#'
#'
#' @export
#' @family creation
#'
#' @examples
#' \dontrun{
Expand Down Expand Up @@ -130,7 +131,7 @@ add_one_subprotocol <-
pandoc_args = c(
"--markdown-headings=atx",
"--shift-heading-level-by=1",
"--metadata=suppress-bibliography[:TRUE]"
"--metadata=suppress-bibliography=TRUE"
)
),
output_file = mdfile,
Expand All @@ -146,7 +147,7 @@ add_one_subprotocol <-
pandoc_args = c(
"--markdown-headings=atx",
"--shift-heading-level-by=1",
"--metadata=suppress-bibliography[:TRUE]"
"--metadata=suppress-bibliography=TRUE"
)
),
output_file = mdfile,
Expand Down Expand Up @@ -288,6 +289,7 @@ add_one_subprotocol <-
#' @importFrom purrr map map_lgl
#'
#' @export
#' @family creation
add_subprotocols <-
function(code_mainprotocol,
fetch_remote = TRUE) {
Expand Down
1 change: 1 addition & 0 deletions R/check_all.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#'
#' @return A report of all failed checks.
#' @export
#' @family check
#'
check_all <- function(protocol_code, fail = !interactive()) {
cat("Checking protocol YAML block with metadata (frontmatter) ...")
Expand Down
2 changes: 1 addition & 1 deletion R/check_frontmatter.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' @importFrom purrr map_lgl map_chr
#'
#' @export
#'
#' @family check
#'
check_frontmatter <- function(
protocol_code,
Expand Down
2 changes: 2 additions & 0 deletions R/check_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ check_protocolcode <- function(protocolcode) {
#'
#' @return Logical. TRUE if check digit is correct.
#' @export
#' @family check
#'
#' @examples
#' validate_orcid("0000-0002-6378-6229")
Expand Down Expand Up @@ -93,6 +94,7 @@ validate_orcid <- function(orcid) {
#' @return a character vector of previously encountered problems and problems
#' identified for author names and `orcid` ids.
#' @export
#' @family check
check_all_author_info <- function(
author_list,
problems_vect
Expand Down
1 change: 1 addition & 0 deletions R/check_structure.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#' @importFrom fs dir_ls path_rel
#'
#' @export
#' @family check
#'
check_structure <- function(protocol_code, fail = !interactive()) {
check_protocolcode(protocol_code)
Expand Down
1 change: 1 addition & 0 deletions R/convert_docx.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#' @importFrom assertthat assert_that
#' @importFrom fs path_rel
#' @export
#' @family convert
convert_docx_to_rmd <- function(
from,
to = sub("docx$", "Rmd", from),
Expand Down
Loading

0 comments on commit 04337a0

Please sign in to comment.