Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
808b785
Create a file for internal functions that cannot be called directly a…
smahaffey Jun 5, 2025
55c444d
Added warning function call to functions set to be deprecated
smahaffey Jun 5, 2025
7e38216
Renamed the cida_drive_path function
smahaffey Jun 5, 2025
b088618
Refactor project_meta_data.R
smahaffey Jun 6, 2025
c863d7d
renamed cida_drive_path.R to project.R
Jun 17, 2025
65a3fd3
stopped building sas-macros.Rmd but left it in case it's needed for r…
Jun 17, 2025
10e0ef3
Rebuilt documentation to update function names/deprecation/file renam…
Jun 17, 2025
0c53c89
Finished setting up a default project path get/set functions.
Jun 24, 2025
25e576e
update documentation
Jun 24, 2025
1f0ab90
update dependencies
Jun 24, 2025
7d8fd0a
update and use check_string_param_value()
Jun 24, 2025
ecfc008
Edited create_project for consistency
Jun 25, 2025
a9bdaf8
Added workflow for checking on multiple OS - Precursor step to doc bu…
Jun 25, 2025
9b6a968
Fixed R check cmd errors
Jun 25, 2025
3f93d91
Fixed param
Jun 26, 2025
65172b3
Setup testthat tests
Jun 26, 2025
118587b
Bug fixes from testing default.R
Jun 26, 2025
ce677dc
Implemented further tests
Jun 26, 2025
dcc9bf7
Changed action to try to add caching
Jun 26, 2025
78041c1
Added an option to skip trying to change the template analyst. Expec…
Jun 26, 2025
15bdab7
Added util_internal.R tests
Jun 26, 2025
962e16c
Added testing
Jul 18, 2025
714d765
Add Functions to help find the drive path from the full project path …
Jul 21, 2025
3adaa38
Additional Tests
Jul 21, 2025
18c254b
Testing for project_internal.R
Jul 28, 2025
8cda291
update path if location listed
Aug 6, 2025
2b2f806
Git Hub actions fails with trying to set the default analyst in the t…
Aug 6, 2025
5d21153
Fixed a missing import in Namespace
Aug 6, 2025
b0027ce
move to quarto
Aug 26, 2025
1c16798
Merge branch 'master' into cleanup_edits_SM
Aug 27, 2025
a4f342b
Output to HTML and PDF for vignettes
Aug 27, 2025
e1f4cc9
Updates based on comments
Sep 12, 2025
37db1ba
renamed document figure folder to address warning about path length a…
Sep 12, 2025
6c92beb
test new workflow with uploading tests, documentation generation, qua…
Sep 12, 2025
d5b157d
fix workflow
Sep 12, 2025
3cfc734
Fix R cache and missing dependencies
Sep 12, 2025
5b39274
still fixing altdoc dep
Sep 12, 2025
3b94f03
altdoc test
Sep 12, 2025
b1e3b0c
add missing steps for quarto rendering.
Sep 12, 2025
ff7607b
reordered action steps.
Sep 12, 2025
bb12e66
setup quarto
Sep 16, 2025
abfa5bd
Removed PDF option that caused errors for now.
Sep 16, 2025
5d5df79
added step to install the package so quarto can render.
Sep 16, 2025
1d446ff
Add deploy to pages_test to test doc generation before actual deployment
smahaffey Oct 2, 2025
cdb05a1
Add write permission and secret to allow commit to pages_test branch
Oct 21, 2025
18c5624
progress on fully implementing open_project and setting variables onL…
Oct 29, 2025
2293079
Changes to support automatically calling open project.
smahaffey Nov 4, 2025
0c33dee
Adding project.R testing
smahaffey Nov 4, 2025
724b359
Adding open_project
smahaffey Nov 4, 2025
9767543
Change warning email to be the generic Research Tools address.
Andrew0Hill Mar 17, 2026
2074581
Fixed an issue with automatic project opening on RProfile.
Andrew0Hill Mar 17, 2026
9bd810c
Attempt fix for failing test, remove unused test.
Andrew0Hill Mar 17, 2026
e84bb43
Another attempt at fixing failing test
Andrew0Hill Mar 17, 2026
6aa9b6d
Update function calls in RMD templates, fix issue where deprecated fu…
Andrew0Hill Apr 24, 2026
540aeda
Re-enable Windows and Mac test runners for debugging
Andrew0Hill Apr 24, 2026
bb0e480
Disable windows test runner
Andrew0Hill Apr 24, 2026
c0d234e
Test out fix and try to re-enable Windows runner
Andrew0Hill Apr 27, 2026
0c4e0a5
Restrict to R 4.5 for the time being, since many dependencies have no…
Andrew0Hill Apr 27, 2026
e19b18b
Re-enable the failing setwd command for debugging.
Andrew0Hill Apr 28, 2026
bddc90d
Remove browser command.
Andrew0Hill Apr 28, 2026
efd14f3
Try out some path changes, and try to disable the CI checks while deb…
Andrew0Hill Apr 29, 2026
308c387
Removing browser() :/
Andrew0Hill Apr 29, 2026
0c87464
Fixing more path issues.
Andrew0Hill Apr 29, 2026
ec3480d
Adding some Windows fixes.
Andrew0Hill Apr 29, 2026
4384f8c
Fix workflow file to not deploy
Andrew0Hill Apr 29, 2026
40cd675
Fix issue #47,#48,#52
abhinavvpundirr May 13, 2026
6499909
Fix conflict in cleanup branch workflow.
Andrew0Hill Jun 1, 2026
9f6fca1
Update DESCRIPTION
Andrew0Hill Jun 1, 2026
d1ab14a
Update NEWS.qmd
Andrew0Hill Jun 1, 2026
e638252
Update README.md instructions.
Andrew0Hill Jun 1, 2026
56dfb2f
Fix roxygen documentation issue
Andrew0Hill Jun 1, 2026
ca376af
Add manual entries for undocumented functions.
Andrew0Hill Jun 1, 2026
61f9a90
More documentation fixes
Andrew0Hill Jun 1, 2026
e377a01
Removed vignettes from old site.
Andrew0Hill Jun 15, 2026
586b824
Removed pkgdown workflow, fixed dependencies in altdoc workflow.
Andrew0Hill Jun 15, 2026
a67cf66
Remove requirement for analyst to be specified.
Andrew0Hill Jun 15, 2026
d43bda0
Change ReadMe to README in tests.
Andrew0Hill Jun 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
^ReadMe.md
Expand All @@ -11,3 +13,6 @@ hex_sticker.R
^_pkgdown\.yml$
^docs$
^pkgdown$
^vignettes/sas-macros.Rmd
^altdoc$
^_quarto$
38 changes: 35 additions & 3 deletions .github/workflows/R-Build-Test_cleanupBranch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: R

on:
push:
branches: [] #branches: [ "cleanup_edits_SM" ]
branches: [ "cleanup_edits_SM" ]

permissions:
contents: read
Expand All @@ -22,8 +22,12 @@ jobs:
fail-fast: true
matrix:
r-version: ['release']
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest] #[ubuntu-latest]

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand All @@ -33,15 +37,43 @@ jobs:
r-version: ${{ matrix.r-version }}
use-public-rspm: true

- name: Cache R
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.r-version }}-${{ hashFiles('DESCRIPTION') }}-${{ hashFiles('**/renv.lock') }}
restore-keys: |
${{ runner.os }}-r-${{ matrix.r-version }}-${{ hashFiles('**/renv.lock') }}
${{ runner.os }}-r-${{ matrix.r-version }}



- name: Install dependencies
if: steps.cache-r.outputs.cache-hit != 'true'
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
extra-packages: any::rcmdcheck,altdoc,quarto,roxygen2,remotes
needs: check

- name: Check Package
uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
error-on: '"error"'

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package


65 changes: 65 additions & 0 deletions .github/workflows/altdoc_quarto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Workflow derived from https://github.com/CIDA-CSPH/CIDAtools/pkgdown.yaml

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: altdoc_quarto_site

jobs:
build_doc:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
r-version: ['release']
# Only restrict concurrency for non-PR jobs
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

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

- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
use-public-rspm: true

- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.,any::rcmdcheck,any::altdoc,any::quarto,any::roxygen2
needs: check

- name: Cache R
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ hashFiles('DESCRIPTION') }}

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true

- name: Run Roxygen2
run: Rscript -e 'roxygen2::roxygenise()'

- name: Build Altdoc Site
run: Rscript -e 'altdoc::render_docs(path = ".", verbose = FALSE, parallel = FALSE, freeze = FALSE)'

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs
48 changes: 0 additions & 48 deletions .github/workflows/pkgdown.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@
inst/doc
*.DS_Store
docs
/tests/testthat/*.rds


/.quarto/
altdoc/freeze.rds
_quarto/*
!_quarto/_freeze/
28 changes: 16 additions & 12 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
Package: CIDAtools
Title: This package contains tools for CIDA projects
Version: 0.1.2
Version: 0.2.0
Authors@R:
c(person("CIDA Research Tools Committee", role = c("aut", "cre"), email = "ryan.a.peterson@cuanschutz.edu"))
c(person("CIDA Research Tools Committee", role = c("aut", "cre"), email = "CIDA-RT@olucdenver.onmicrosoft.com"))
Description: This package contains the numerous templates and tools to make life at CIDA (part of the Colorado School of Public Health) happier and more efficient!
Depends: R (>= 3.5.0)
Depends: R (>= 4.0)
Imports:
dplyr,
generics,
flextable,
table1,
shiny
shiny,
fs
Suggests:
git2r,
survey,
xlsx,
git2r,
survey,
quarto,
xlsx,
knitr,
pander,
pander,
arsenal,
rmarkdown,
DT,
covr,
covr,
shinythemes,
stats,
Hmisc,
Expand All @@ -30,9 +32,11 @@ Suggests:
tableone,
cardx,
stats,
broom.helpers
broom.helpers,
testthat (>= 3.0.0)
Config/testthat/edition: 3
License: CC0
Encoding: UTF-8
RoxygenNote: 7.3.2
VignetteBuilder: knitr
RoxygenNote: 7.3.3
VignetteBuilder: quarto, knitr
URL: https://cida-csph.github.io/CIDAtools/
27 changes: 27 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,40 @@ export(convertIntervalNotation)
export(create_project)
export(find_nearest)
export(getProjectData)
export(get_default_value)
export(get_defaults)
export(get_full_project_path)
export(get_global_default_analyst)
export(get_global_default_path)
export(get_project_analyst)
export(get_project_drive_path)
export(get_project_github)
export(get_project_location)
export(get_project_meta_data)
export(get_project_name)
export(get_project_pi)
export(list_kables)
export(nLevelsP)
export(nrowP)
export(open_project)
export(pvalr)
export(randblinder_shiny_tool)
export(read_xlsx_color)
export(removeAnalyst)
export(remove_global_default_analyst)
export(remove_global_default_path)
export(setAnalyst)
export(setPermanentAnalyst)
export(set_default_value)
export(set_full_project_path)
export(set_global_default_analyst)
export(set_global_default_path)
export(set_project_analyst)
export(set_project_github)
export(set_project_location)
export(set_project_meta_data)
export(set_project_name)
export(set_project_pi)
export(sum_ignore_NA)
export(vec_power)
import(flextable)
Expand All @@ -41,3 +67,4 @@ importFrom(stats,wilcox.test)
importFrom(table1,stats.apply.rounding)
importFrom(table1,stats.default)
importFrom(table1,table1)
importFrom(utils,head)
8 changes: 8 additions & 0 deletions NEWS.md → NEWS.qmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
title: "CIDATools - News"
format: html
---
# 0.2.0
- Refactored most functions to use consistent camelCase naming conventions
- Deprecated some unused/unsupported functions (if you encounter a deprecated function which you are actively using, please email CIDA-RT@olucdenver.onmicrosoft.com)

# 0.1.1

- Data only argument implemented
Expand Down
Loading
Loading