Skip to content

Commit 4d28663

Browse files
committed
updates to remove dependencies on the HiddenSemiMarkov package
1 parent e99dc12 commit 4d28663

File tree

91 files changed

+23100
-2245
lines changed

Some content is hidden

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

91 files changed

+23100
-2245
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
13
on:
24
push:
3-
branches:
4-
- main
5-
- master
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
610

7-
name: pkgdown
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
814

915
jobs:
1016
pkgdown:
11-
runs-on: macOS-latest
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
1221
env:
1322
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
1425
steps:
15-
- uses: actions/checkout@v2
16-
17-
- uses: r-lib/actions/setup-r@v1
26+
- uses: actions/checkout@v4
1827

19-
- uses: r-lib/actions/setup-pandoc@v1
28+
- uses: r-lib/actions/setup-pandoc@v2
2029

21-
- name: Query dependencies
22-
run: |
23-
install.packages('remotes')
24-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
25-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
26-
shell: Rscript {0}
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
2733

28-
- name: Cache R packages
29-
uses: actions/cache@v2
34+
- uses: r-lib/actions/setup-r-dependencies@v2
3035
with:
31-
path: ${{ env.R_LIBS_USER }}
32-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
33-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
34-
35-
- name: Install dependencies
36-
run: |
37-
remotes::install_deps(dependencies = TRUE)
38-
install.packages("pkgdown", type = "binary")
39-
shell: Rscript {0}
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
4038

41-
- name: Install package
42-
run: R CMD INSTALL .
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
41+
shell: Rscript {0}
4342

44-
- name: Deploy package
45-
run: |
46-
git config --local user.email "[email protected]"
47-
git config --local user.name "GitHub Actions"
48-
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/[email protected]
46+
with:
47+
clean: false
48+
branch: gh-pages
49+
folder: docs

DESCRIPTION

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,25 @@ Type: Package
33
Title: PMDD and MRMD Diagnoses Following The Carolina Premenstrual Assessment Scoring System (C-PASS)
44
Version: 0.1.0
55
Authors@R: c(
6-
person("Laura", "Symul", email = "[email protected]",role = c("aut", "cre","ccp")),
6+
person("Laura", "Symul", email = "[email protected]",role = c("aut", "cre","ccp")),
77
person("Tory", "Eisenlohr-Moul", email = "[email protected]", role = c("aut","ccp"))
88
)
9-
Maintainer: Laura Symul <[email protected]>
9+
Maintainer: Laura Symul <[email protected]>
1010
Description: This package is an implementation of the C-PASS (Carolina Premenstrual Assessment Scoring System) procedure for the diagnosis of PMDD (Pre-Menstrual Dysphoric Disorder) and MRMD (Menstrually Related Mood Disorder). For a full description of this procedure, refer to Tory A. Eisenlohr-Moul et al., 2017, American Journal of Psychiatry.
1111
In addition to the implementation of the procedure, this package also provides multiple options for the visualization of the reported symptoms and diagnoses.
1212
License: CC BY 4.0
1313
URL: https://lasy.github.io/cpass/
1414
Encoding: UTF-8
1515
LazyData: true
16-
RoxygenNote: 7.2.1
16+
RoxygenNote: 7.3.2
1717
Imports:
1818
magrittr,
19+
tidyr,
1920
ggplot2,
2021
dplyr,
21-
ggthemes,
2222
cowplot,
2323
purrr,
24-
tidyr,
25-
stringr,
26-
ggpubr
27-
Remotes:
28-
lasy/HiddenSemiMarkov
24+
stringr
2925
Depends:
3026
R (>= 2.10)
3127
Suggests:

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export(simulate_cycle)
1212
export(supported_data_format)
1313
import(dplyr)
1414
import(ggplot2)
15-
import(magrittr)
1615
import(tidyr)
1716
importFrom(magrittr,"%>%")
1817
importFrom(purrr,map_dfr)

0 commit comments

Comments
 (0)