Skip to content

Commit

Permalink
GitHub action and citation modified
Browse files Browse the repository at this point in the history
  • Loading branch information
phgrosjean committed May 29, 2024
1 parent dc3f1de commit d9b6ce7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

name: R-CMD-check

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:

name: pkgdown

permissions: read-all

jobs:
pkgdown:
runs-on: ubuntu-latest
Expand All @@ -30,7 +32,7 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, any::remotes, local::.
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
Expand Down
2 changes: 1 addition & 1 deletion R/learnitdown_learnr.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ record_learnr <- function(tutorial_id, tutorial_version, user_id, event, data) {
if (verb == "assisted") {
if (data$type == "solution")
verb <- "revealed"
# If the name ends with _hX and this is hint x-1 (becausde counted from 0)
# If the name ends with _hX and this is hint x-1 (because counted from 0)
if (grepl("_h[1-9]$", label) && data$type == "hint" &&
as.integer(data$index) == as.integer(substring(label, nchar(label))) - 1)
verb <- "revealed"
Expand Down
5 changes: 3 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ citHeader("To cite learnitr packages in publications use:")
citEntry(
entry = "Manual",
title = "LearnIt::R",
author = personList(as.person("Philippe Grosjean")),
author = personList(as.person("Philippe Grosjean"),
as.person("Guyliann Engels")),
organization = "UMONS",
address = "MONS, Belgium",
year = version$year,
url = "https://learnitr.r-universe.dev/",

textVersion =
paste("Grosjean, Ph. (", version$year, "). ",
paste("Grosjean, Ph. & Engels, G. (", version$year, "). ",
"LearnIt::R. ",
"UMONS, Mons, Belgium. ",
"URL https://learnitr.r-universe.dev/.",
Expand Down

0 comments on commit d9b6ce7

Please sign in to comment.