Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating website #479

Merged
merged 345 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
345 commits
Select commit Hold shift + click to select a range
b3ada15
Merge pull request #1 from solisOHDSI/featureEngineerEdits2
solis9753 Aug 25, 2022
4966a6b
Merge pull request #308 from solisOHDSI/develop
jreps Aug 25, 2022
5cad3e2
check and test fixes
jreps Aug 25, 2022
bf8cd86
Merge branch 'develop' of https://github.com/OHDSI/PatientLevelPredic…
jreps Aug 25, 2022
40d215c
change input name for applyFeatureengineering
jreps Aug 25, 2022
6246041
updating version number
jreps Aug 25, 2022
7fa5df8
fix applyTidy
egillax Aug 26, 2022
a0ae799
eunomia test helper
egillax Aug 26, 2022
a1ea2b3
bug fixes
jreps Aug 29, 2022
0c7e73a
Merge branch 'develop' of https://github.com/OHDSI/PatientLevelPredic…
egillax Aug 29, 2022
96fac85
Update GradientBoostingMachine.R
jreps Aug 30, 2022
366ea16
make univariate feature selection consistent with sklearn
egillax Aug 30, 2022
d211468
add tests for applying tidy and FE
egillax Aug 30, 2022
fc45f74
Merge branch 'develop' of https://github.com/OHDSI/PatientLevelPredic…
egillax Aug 30, 2022
c2a4983
rename loaded plp object in test
egillax Aug 31, 2022
90c64f1
fix bug
egillax Sep 1, 2022
f2684d0
Fix featureEng broken test, remove paralellization from learningCurve…
egillax Sep 1, 2022
c89f5fc
fix leftover instances of preprocess - make sure models that had prep…
egillax Sep 2, 2022
d23a52c
Update RunMultiplePlp.R
nbehzad Sep 6, 2022
94d2316
Merge pull request #318 from nbehzad/patch-1
jreps Sep 7, 2022
55ebc68
Update ViewShinyPlp.R
jreps Sep 7, 2022
f4c5d9d
shiny validation viewer fix
jreps Sep 13, 2022
0ebd2ae
cohort and database table updates
jreps Sep 17, 2022
fc28c14
Update resultsDataModelSpecification.csv
jreps Sep 17, 2022
473fb1d
Update PlpResultTables.sql
jreps Sep 17, 2022
7578e12
Fix typos in data model
anthonysena Sep 19, 2022
a7782e0
Merge pull request #322 from anthonysena/revised-data-model
jreps Sep 19, 2022
f3bd182
added databaseId to plp objects
jreps Sep 26, 2022
948e372
Resolve an issue with coefficient's data structure
lhjohn Sep 27, 2022
9479935
Merge pull request #328 from OHDSI/327-transfer-learning-bug
lhjohn Sep 27, 2022
c49ca59
remove survAUC
egillax Sep 27, 2022
637b73d
Merge pull request #329 from OHDSI/survAUC_fix
jreps Sep 27, 2022
c892707
- export csv includes models and added import from csv
jreps Sep 28, 2022
fdd716c
Merge pull request #325 from OHDSI/updated_result_tables
jreps Sep 28, 2022
4928f11
fixing issue #286
jreps Sep 28, 2022
db71483
fixing #323
jreps Sep 28, 2022
22d367c
Merge pull request #330 from OHDSI/updated_result_tables
jreps Sep 28, 2022
afa06ee
news updates
jreps Sep 28, 2022
03c73ad
Merge branch 'develop' of https://github.com/OHDSI/PatientLevelPredic…
jreps Sep 28, 2022
824a221
Merge pull request #248 from ablack3/develop
jreps Sep 28, 2022
29ba31c
Update DESCRIPTION
jreps Sep 28, 2022
9ffc3bd
Update RunPlp.R
jreps Sep 28, 2022
0a696d8
Merge branch 'develop' into issue242
jreps Sep 28, 2022
e7983b9
Merge pull request #332 from OHDSI/issue242
jreps Sep 28, 2022
883909a
minor edits
jreps Sep 28, 2022
d7421aa
Merge pull request #331 from OHDSI/develop
jreps Sep 28, 2022
7727e1f
fixing odd formating bug
jreps Oct 3, 2022
461a7cb
replacing gsub with sub csv import
jreps Oct 3, 2022
be4aed0
using readr::read_csv
jreps Oct 3, 2022
04a5efd
forcing the databaseId to be a string
jreps Oct 4, 2022
27901b7
Merge branch 'iht' into develop
rossdwilliams Oct 6, 2022
4872541
Merge pull request #333 from OHDSI/develop
jreps Oct 6, 2022
9103fb2
pass seed to cyclops and add priorType to getCV
egillax Oct 11, 2022
a04a6a6
fixed cox values
jreps Oct 15, 2022
a08aeff
minor update to createDatabaseDetails
jreps Oct 21, 2022
98012fe
shiny viewer big json issue fix
jreps Oct 27, 2022
91bccbf
Merge branch 'develop' into cvPriorFix
jreps Oct 27, 2022
710dbce
Merge pull request #335 from OHDSI/cvPriorFix
jreps Oct 27, 2022
ff5db60
Merge pull request #338 from OHDSI/develop
jreps Oct 28, 2022
011d67a
make sure k is an integer
egillax Dec 13, 2022
6915674
Merge pull request #344 from OHDSI/univariateFix
jreps Dec 13, 2022
5803170
Update DESCRIPTION
jreps Dec 14, 2022
515a7b2
Update NEWS.md
jreps Dec 14, 2022
09650ef
Merge pull request #345 from OHDSI/develop
jreps Dec 14, 2022
dc04241
test and check clean
jreps Dec 14, 2022
2344475
Merge pull request #346 from OHDSI/develop
jreps Dec 15, 2022
fe2e747
Adding GA workflow for weekly R check
Dec 21, 2022
9362b26
fix adaboost to work with sklearn=1.2
egillax Jan 4, 2023
70570cd
remove unneccesary calls to createTrainData
egillax Jan 4, 2023
57089d4
fix typo
egillax Jan 4, 2023
2f31672
fix random forest error, remove 'balanced' class weights as part of d…
egillax Jan 4, 2023
10f7a06
epsilon is for numerical stability, no reason to include it in the hy…
egillax Jan 4, 2023
677724e
re-document
egillax Jan 4, 2023
11b8eff
- add tests for missing sklearn classifiers
egillax Jan 4, 2023
586970e
merged with develop
egillax Jan 4, 2023
ec14e39
fix test failures
egillax Jan 5, 2023
e71a4ce
add helper function to copy trainData so it's not overwritten
egillax Jan 5, 2023
e691b71
fix seeding for GBM
egillax Jan 5, 2023
582fabb
shiny app change to use latest OhdsiShinyModules
jreps Jan 5, 2023
3545290
increase test coverage and test stability
egillax Jan 6, 2023
fcb7c43
adding initial result database migration sql
jreps Jan 6, 2023
151027c
Update DESCRIPTION
jreps Jan 6, 2023
6bf6ffb
increase amounts of events in test for better fit
egillax Jan 9, 2023
99a4983
Merge pull request #351 from OHDSI/scikit-learn-fixes
jreps Jan 9, 2023
f6a5845
Merge pull request #353 from OHDSI/develop
jreps Jan 9, 2023
3a27814
removing ram stop
jreps Jan 10, 2023
d7b5821
Making tests if table exists on server case-insensitive.
Jan 11, 2023
9037a1a
Merge pull request #354 from OHDSI/issue_348
jreps Jan 11, 2023
4d08b0b
add basic methods for the sklearn models along with unit tests
egillax Jan 11, 2023
4865599
Delete sklearnToJson.R
egillax Jan 12, 2023
9c555cb
fix test so they pass
egillax Jan 12, 2023
35abfa8
add sparse matrix serialization and document functions
egillax Jan 12, 2023
180942f
test comparison against json not pkl
egillax Jan 13, 2023
e774ec0
document
egillax Jan 13, 2023
5e26a10
try to fix windows python issues
egillax Jan 13, 2023
842c759
Update DESCRIPTION
jreps Jan 13, 2023
3392ace
try to fix windows python issues
egillax Jan 13, 2023
a966898
merged with remote
egillax Jan 13, 2023
a30b379
Merge branch 'develop' into sklearnJsonFix
egillax Jan 13, 2023
f607490
Update DESCRIPTION
jreps Jan 13, 2023
54c8b52
Merge pull request #358 from OHDSI/sklearnJsonFix
jreps Jan 13, 2023
d2c87dd
Merge pull request #356 from OHDSI/database_connector_6
jreps Jan 13, 2023
04c9f9e
Merge pull request #357 from OHDSI/develop
jreps Jan 13, 2023
08f57c0
Update NEWS.md
jreps Jan 17, 2023
ee49f22
Merge pull request #359 from OHDSI/main
jreps Jan 17, 2023
96c3a89
Merge branch 'shiny_update' into develop
jreps Jan 17, 2023
bd05eeb
Merge pull request #360 from OHDSI/develop
jreps Jan 17, 2023
73500bd
update minimum R version to 3.5.0 in accordance with check note
egillax Jan 31, 2023
acb669e
For doc homepage/readme
egillax Jan 31, 2023
8c836dd
Add functions that were missing from function reference
egillax Jan 31, 2023
c41a64d
Add header to DataBaseMigration.R
egillax Jan 31, 2023
66874d2
Add internal keyword to package docstring so it's not added to functi…
egillax Jan 31, 2023
2c59ae1
Fix description file
egillax Feb 1, 2023
d31ce3e
debug actions
egillax Feb 1, 2023
6bf1992
remove GA debug
egillax Feb 2, 2023
ed168b3
fix dependency issues
egillax Feb 3, 2023
6fbc4a5
10x faster listCartesian function
egillax Feb 7, 2023
94e4b77
update DatabaseConn dependancy
egillax Feb 7, 2023
8a6b148
update DatabaseConn dependancy
egillax Feb 7, 2023
e74a531
Merge branch 'faster_listCartesian' of https://github.com/OHDSI/Patie…
egillax Feb 7, 2023
3f9a9be
sapply instead of lapply
egillax Feb 7, 2023
367d3e8
fixed DESCRIPTION
egillax Feb 8, 2023
6eb23e7
fixed DESCRIPTION
egillax Feb 8, 2023
9675945
fix function to work both for list of lists and list of vectors
egillax Feb 8, 2023
0d8e4a1
add shinydashboard so R check passes
egillax Feb 8, 2023
0c99890
Merge pull request #366 from OHDSI/faster_listCartesian
jreps Feb 8, 2023
d8fd6a9
Merge branch 'develop' into fix_documentation
jreps Feb 8, 2023
c8a5ced
using ShinyAppBuilder for shiny app
jreps Feb 8, 2023
8a63bc2
updating version and news
jreps Feb 8, 2023
66bd4b3
Merge branch 'develop' into shiny_update
jreps Feb 8, 2023
dab174c
Merge pull request #368 from OHDSI/shiny_update
jreps Feb 8, 2023
6ec72a6
merged with develop
egillax Feb 9, 2023
f021276
fix dependencies, add dev release numbering and dev website
egillax Feb 9, 2023
b70d21a
Add github actions to build website automatically
egillax Feb 9, 2023
699f91f
fix RMM and R version
egillax Feb 9, 2023
0978d5d
fix location of dev site
egillax Feb 9, 2023
8834189
update R version
egillax Feb 14, 2023
05f2889
update version and R version. Remove reference to non-existing classi…
egillax Feb 14, 2023
ef910f7
update featureEngineering and Videos
egillax Feb 14, 2023
6b53dcc
fix spelling mistake
egillax Feb 14, 2023
5ba3170
bug fix for issue 370
jreps Feb 16, 2023
492a3c6
Update DESCRIPTION
jreps Feb 17, 2023
2104196
Update HelperFunctions.R
jreps Feb 17, 2023
cf848a2
Merge branch 'develop' of https://github.com/OHDSI/PatientLevelPredic…
jreps Feb 17, 2023
55519ec
Update DESCRIPTION
jreps Feb 17, 2023
ff70fe7
Merge pull request #371 from OHDSI/develop
jreps Feb 17, 2023
bd8aaa9
Update DESCRIPTION
jreps Feb 17, 2023
d410b12
Update DESCRIPTION
egillax Feb 20, 2023
a5538f6
issue 372 fix
jreps Feb 20, 2023
e083074
update to getDataMigrator
jreps Feb 28, 2023
ee03f69
Merge pull request #373 from OHDSI/develop
jreps Feb 28, 2023
7288772
Update DESCRIPTION
jreps Feb 28, 2023
7a5a71f
initial code for lightGBM
ChungsooKim Mar 10, 2023
59de447
fixing issue 377
jreps Mar 13, 2023
0bae465
adding min cell count to csv export
jreps Mar 13, 2023
4d32d5b
Merge pull request #378 from OHDSI/issue_377
jreps Mar 13, 2023
7b1ff47
removing certain columns
jreps Mar 13, 2023
77a8cdc
integrate with current patientlevelprediction (fixed after review)
ChungsooKim Mar 10, 2023
6191cf1
Merge pull request #376 from ABMI/addLightGBM
jreps Mar 14, 2023
d09d91c
preparing to release
jreps Mar 14, 2023
50a8df1
Update SaveLoadPlp.R
jreps Mar 14, 2023
52cee33
Merge pull request #379 from OHDSI/issue_369
jreps Mar 14, 2023
66d3cf1
Merge pull request #380 from OHDSI/develop
jreps Mar 14, 2023
47767a7
Update DESCRIPTION
jreps Mar 14, 2023
4f507b8
merged with develop
egillax Mar 15, 2023
bd4e933
doc fix so that links to FeatureExtraction work (#375)
rkboyce Mar 15, 2023
f8c1f36
add lightGBM to function reference on website
egillax Mar 15, 2023
17f1497
update featurEngineering article
egillax Mar 15, 2023
3a4560d
Pass analysis path to fit function
lhjohn Mar 30, 2023
a0fd3ee
Update fitting tests
lhjohn Mar 31, 2023
d5b7e86
Update KNN tests
lhjohn Mar 31, 2023
38645a3
Update sklearn tests
lhjohn Mar 31, 2023
64cdc44
Update recalibration fit
lhjohn Mar 31, 2023
d3d27ba
Update Light GBM tests
lhjohn Mar 31, 2023
f4e5d8e
Update CyclopsModels tests
lhjohn Mar 31, 2023
443c394
Update Rclassifier tests
lhjohn Mar 31, 2023
f2b9d91
Merge pull request #382 from OHDSI/381-analysis-path
jreps Apr 4, 2023
f0e204f
move loadPlpData in runMultiple to save loading until later
egillax Apr 13, 2023
4b6b3a6
Merge pull request #384 from OHDSI/move_loadPLP_runMultiple
jreps Apr 13, 2023
418dca1
fixing issue 388
jreps Apr 25, 2023
12fff7a
updating hyper-parameter search
jreps Apr 25, 2023
812b954
Merge pull request #390 from OHDSI/issue_388
jreps Apr 25, 2023
9d36511
Merge branch 'develop' into fix_documentation
egillax Apr 26, 2023
ff93a35
remove docs folder
egillax Apr 26, 2023
ded6640
remove outdated atlas videos
egillax Apr 26, 2023
b51cff1
fix FE article
egillax Apr 28, 2023
a9d8d6d
update pdf vignette of FE
egillax Apr 28, 2023
c30e07f
update pdf installation vignette
egillax Apr 28, 2023
8f15906
fix typo in installation guide and regenerated pdf
egillax Apr 28, 2023
8ba5158
remove tex file from inst/doc
egillax Apr 28, 2023
a5f7bc1
remove unused DL pngs
egillax Apr 28, 2023
6260541
Merge pull request #365 from OHDSI/fix_documentation
jreps May 5, 2023
a75700d
Update R/SklearnClassifier.R
jreps May 5, 2023
dc863ed
Merge pull request #391 from OHDSI/issue_362
jreps May 8, 2023
d2d8039
website actions on on develop instead of fix_doc branch
egillax May 15, 2023
1e89ed9
version update for release
jreps May 17, 2023
f542d0c
Merge pull request #393 from OHDSI/develop
jreps Jun 2, 2023
603f9cc
Update DESCRIPTION
jreps Jun 2, 2023
2116ddf
wrap comparisons with python objects in py_bool
egillax Jun 19, 2023
c160182
fix svm from json
egillax Jun 20, 2023
ea01f2e
remove sklearn-json from python env since its not used
egillax Jun 20, 2023
bcfdda7
Merge pull request #398 from OHDSI/reticulate-fix
jreps Jun 22, 2023
76cbe81
ready for release 6.3.3
jreps Jun 22, 2023
f5942b6
Merge pull request #401 from OHDSI/develop
jreps Jun 23, 2023
b2ac1cd
Update DESCRIPTION
jreps Jun 23, 2023
662222c
shiny updates
jreps Jul 21, 2023
83b461a
spline feature engineering
jreps Aug 10, 2023
23a8d3c
basic imputation function added
jreps Aug 11, 2023
c7c838e
Change execution_date_time to varchar(100)
anthonysena Aug 11, 2023
dbe2007
Merge pull request #408 from OHDSI/issue-407-execution_date_time
jreps Aug 15, 2023
ce7cadb
added feature engineering functions
jreps Aug 15, 2023
39aabd1
Update _pkgdown.yml
jreps Aug 15, 2023
f6bda23
Merge pull request #409 from OHDSI/develop
jreps Aug 16, 2023
6ae6773
Update DESCRIPTION
jreps Aug 16, 2023
92047a8
remove python setup from action yml
egillax Aug 25, 2023
05d79ac
remove python setup from action yml
egillax Aug 25, 2023
d2c9277
Merge branch '406-hades_weekly_fail' of https://github.com/OHDSI/Pati…
egillax Aug 25, 2023
98cf353
update deprecated actions
egillax Aug 25, 2023
40aff5b
fix decision tree node deSerialization for sklearn>=1.3
egillax Aug 25, 2023
790f317
tell windows where miniconda is
egillax Aug 25, 2023
93bc937
separate workflow item for windows miniconda
egillax Aug 25, 2023
8950593
use bash to add windows path
egillax Aug 25, 2023
23bd6bb
Update R_CMD_check_Hades.yaml
egillax Aug 25, 2023
84602e7
Update R_CMD_check_Hades.yaml
egillax Aug 25, 2023
d9a609c
Update R_CMD_check_Hades.yaml
egillax Aug 25, 2023
0d32abd
prepare release
egillax Aug 25, 2023
2653c39
update python version mentioned in README
egillax Aug 25, 2023
86930ed
406 hades weekly fail - hotfix (#410)
egillax Aug 28, 2023
5df21d7
merge 406-hotfix into develop
egillax Aug 28, 2023
5a08d8a
adding pages to website
jreps Sep 7, 2023
bf871cc
Merge branch 'develop' of https://github.com/OHDSI/PatientLevelPredic…
jreps Sep 7, 2023
820e05e
Update uploadToDatabase.R
jreps Sep 21, 2023
8fe8845
Update ConstrainedPredictors.Rmd
jreps Oct 9, 2023
559c7ef
Update ConstrainedPredictors.Rmd
jreps Oct 9, 2023
069958f
use python 3.11 when creating conda envs
egillax Oct 10, 2023
6ab80dd
Update R_CMD_check_Hades.yaml
egillax Oct 10, 2023
0fe1b78
Merge pull request #414 from OHDSI/413-python_fix
jreps Oct 11, 2023
e6a6c93
fixing issue 415
jreps Oct 11, 2023
392aef7
Merge branch 'develop' of https://github.com/OHDSI/PatientLevelPredic…
jreps Oct 11, 2023
e717a10
Merge branch 'main' into develop
jreps Oct 11, 2023
ecf0fa2
Update R_CMD_check_Hades.yaml
egillax Oct 12, 2023
7a55c31
Merge pull request #416 from OHDSI/develop
jreps Oct 12, 2023
9e37b51
prepare release (#439)
egillax Apr 5, 2024
c5176a2
Version 6.3.8 (#446)
egillax Apr 26, 2024
8efa4f0
Update R_CMD_check_main_weekly.yaml
egillax Apr 28, 2024
9c3f271
Update R_CMD_check_main_weekly.yaml
egillax May 3, 2024
d402935
Update R_CMD_check_Hades.yaml
egillax May 3, 2024
3827075
disable BigKnn tests
egillax May 31, 2024
1dfc46b
hot fix for result table creation
jreps Aug 21, 2024
9d1fb8c
updating website docs
jreps Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
.travis.yml
standalone
^\.travis\.yml$
deploy.sh
extras/*
man-roxygen
xgboost
compare_versions
.github
docs/*
_pkgdown.yml


^vignettes/articles$
^doc$
^Meta$
110 changes: 34 additions & 76 deletions .github/workflows/R_CMD_check_Hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
config:
- {os: windows-latest, r: 'release'} # Does not appear to have Java 32-bit, hence the --no-multiarch
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-22.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}

env:
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
Expand All @@ -45,98 +45,56 @@ jobs:
CDM5_SQL_SERVER_USER: ${{ secrets.CDM5_SQL_SERVER_USER }}

steps:
- uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.7"
activate-environment: r-reticulate

- name: python main dependencies
run: conda install --name r-reticulate numpy scipy scikit-learn pandas pydotplus joblib

- name: python json dependencies
run: conda install --name r-reticulate -c conda-forge sklearn-json

- name: python scikit-survival dependencies
run: conda install --name r-reticulate -c sebp scikit-survival
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-tinytex@v1
- uses: r-lib/actions/setup-tinytex@v2

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

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-3-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-3-

- name: Install system dependencies
- name: Install system requirements
if: runner.os == 'Linux'
run: |
sudo apt-get install -y libssh-dev
Rscript -e 'install.packages("remotes")'
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE, INSTALL_opts=c("--no-multiarch"))
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: Install covr
if: runner.os == 'Windows'
run: |
remotes::install_cran("covr")
shell: Rscript {0}

- name: Remove check folder if exists
if: runner.os == 'macOS'
run: unlink("check", recursive = TRUE)
shell: Rscript {0}

- name: use r-reticulate environment
run: |
reticulate::use_condaenv("r-reticulate", required = TRUE)
shell: Rscript {0}

- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--no-multiarch"), error_on = "warning", check_dir = "check")
shell: Rscript {0}
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "22.04"))')

- name: Setup conda
uses: conda-incubator/setup-miniconda@v3

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
- uses: r-lib/actions/check-r-package@v2
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
args: 'c("--no-manual", "--as-cran")'
error-on: '"warning"'
check-dir: '"check"'

- name: Upload source package
if: success() && runner.os == 'macOS' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: package_tarball
path: check/*.tar.gz


- name: Install covr
if: runner.os == 'Linux'
run: |
remotes::install_cran("covr")
shell: Rscript {0}

- name: Test coverage
if: runner.os == 'Windows'
run: covr::codecov()
if: runner.os == 'Linux'
run: covr::codecov(token = "${{ secrets.CODECOV_TOKEN }}")
shell: Rscript {0}


Expand All @@ -152,7 +110,7 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -178,7 +136,7 @@ jobs:
draft: false
prerelease: false

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
if: ${{ env.new_version != '' }}

- name: Install drat
Expand All @@ -194,7 +152,7 @@ jobs:

- name: Download package tarball
if: ${{ env.new_version != '' }}
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: package_tarball

Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/R_CMD_check_main_weekly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
on:
schedule:
- cron: '0 12 * * 6' # every Saturday at noon UTC

workflow_dispatch:

name: 'R check'

jobs:
R-CMD-check-main:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
CDM5_ORACLE_CDM_SCHEMA: ${{ secrets.CDM5_ORACLE_CDM_SCHEMA }}
CDM5_ORACLE_OHDSI_SCHEMA: ${{ secrets.CDM5_ORACLE_OHDSI_SCHEMA }}
CDM5_ORACLE_PASSWORD: ${{ secrets.CDM5_ORACLE_PASSWORD }}
CDM5_ORACLE_SERVER: ${{ secrets.CDM5_ORACLE_SERVER }}
CDM5_ORACLE_USER: ${{ secrets.CDM5_ORACLE_USER }}
CDM5_POSTGRESQL_CDM_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_CDM_SCHEMA }}
CDM5_POSTGRESQL_OHDSI_SCHEMA: ${{ secrets.CDM5_POSTGRESQL_OHDSI_SCHEMA }}
CDM5_POSTGRESQL_PASSWORD: ${{ secrets.CDM5_POSTGRESQL_PASSWORD }}
CDM5_POSTGRESQL_SERVER: ${{ secrets.CDM5_POSTGRESQL_SERVER }}
CDM5_POSTGRESQL_USER: ${{ secrets.CDM5_POSTGRESQL_USER }}
CDM5_SQL_SERVER_CDM_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_CDM_SCHEMA }}
CDM5_SQL_SERVER_OHDSI_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_OHDSI_SCHEMA }}
CDM5_SQL_SERVER_PASSWORD: ${{ secrets.CDM5_SQL_SERVER_PASSWORD }}
CDM5_SQL_SERVER_SERVER: ${{ secrets.CDM5_SQL_SERVER_SERVER }}
CDM5_SQL_SERVER_USER: ${{ secrets.CDM5_SQL_SERVER_USER }}
CDM5_REDSHIFT_CDM_SCHEMA: ${{ secrets.CDM5_REDSHIFT_CDM_SCHEMA }}
CDM5_REDSHIFT_OHDSI_SCHEMA: ${{ secrets.CDM5_REDSHIFT_OHDSI_SCHEMA }}
CDM5_REDSHIFT_PASSWORD: ${{ secrets.CDM5_REDSHIFT_PASSWORD }}
CDM5_REDSHIFT_SERVER: ${{ secrets.CDM5_REDSHIFT_SERVER }}
CDM5_REDSHIFT_USER: ${{ secrets.CDM5_REDSHIFT_USER }}
CDM5_SPARK_USER: ${{ secrets.CDM5_SPARK_USER }}
CDM5_SPARK_PASSWORD: ${{ secrets.CDM5_SPARK_PASSWORD }}
CDM5_SPARK_CONNECTION_STRING: ${{ secrets.CDM5_SPARK_CONNECTION_STRING }}

steps:
- uses: actions/checkout@v4

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

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

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

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- name: Setup conda
uses: conda-incubator/setup-miniconda@v3

- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran")'
error-on: '"warning"'
check-dir: '"check"'
46 changes: 46 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, develop]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

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

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, ohdsi/OhdsiRTools
needs: website

- name: Build site
run: Rscript -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE)'

- name: Fix Hades Logo
run: Rscript -e 'OhdsiRTools::fixHadesLogo()'

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*-Ex.R
# R data files from past sessions
.Rdata
# R environ
.Renviron
# RStudio files
.Rproj.user/
.Rproj.user
Expand All @@ -20,4 +22,6 @@ standalone/build/*
/plpmodels/*
/python_models/*
/mycache/*
/inst/shiny/DiagnosticsExplorer/rsconnect/*
/inst/shiny/DiagnosticsExplorer/rsconnect/*
/doc/
/Meta/
Loading
Loading