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

Devel #80

Merged
merged 294 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
294 commits
Select commit Hold shift + click to select a range
7bbb444
recompile package
Nov 17, 2023
734f655
fix setup skip
Nov 17, 2023
9744f0b
update NEWS
Nov 17, 2023
f050380
setup pkgdown
Nov 17, 2023
8a38475
log args too
Nov 17, 2023
0a34f9d
implement study list and details
Nov 17, 2023
4fb887d
document new functions
Nov 17, 2023
8db4afe
increase version
Nov 17, 2023
9cb740f
inject variables
Nov 17, 2023
bb2001c
return study ID upon insert
Nov 17, 2023
dcf4f01
fix parameter added back
Nov 17, 2023
e271d99
increment DB schema version
Nov 17, 2023
26050ed
add tests for simple randomization: one-sample prop tests for two and…
aleksandraduda2 Dec 11, 2023
1d7c568
correct number of patients
aleksandraduda2 Dec 11, 2023
c91fd59
moved API to standard location, bumped up renv to R 4.2.3, removed "h…
kamilsi Dec 13, 2023
2270a58
removed dummy function
kamilsi Dec 15, 2023
bf4e465
Merge pull request #17 from ttscience/feat/simple
kamilsi Dec 15, 2023
f85c8f1
Removed dependency on 7yo dockerfile, added our own; fixed API path i…
kamilsi Dec 15, 2023
e1ef4ea
fixed dockerfile dependencies
kamilsi Dec 15, 2023
8c41b49
bugfixed test startup
kamilsi Dec 15, 2023
2f059e8
Fixed R version, API launch command
kamilsi Dec 15, 2023
705edb5
removed redundant test
kamilsi Dec 15, 2023
e176ccd
added comments to SQL, added additional DB tests
kamilsi Dec 19, 2023
34a3bc8
bugfix
kamilsi Dec 19, 2023
16d6d2b
bugifx
kamilsi Dec 19, 2023
f79c274
bugfixed tests
kamilsi Dec 19, 2023
244d3b9
Merge pull request #19 from ttscience/feat/study-def
kamilsi Dec 20, 2023
329fbb2
resolved merge conflicts
kamilsi Dec 20, 2023
6014329
Merge pull request #20 from ttscience/feat/study-list
kamilsi Dec 20, 2023
97e8cd2
WIP: core function for dynamic randomization, added usethat and style…
kamilsi Dec 21, 2023
871df52
Working piece, test lacking
kamilsi Dec 21, 2023
675f322
docs (WIP)
kamilsi Dec 21, 2023
07c3bc1
Docs (WIP)
kamilsi Dec 21, 2023
e821f23
WIP: in changes
kamilsi Dec 21, 2023
ff8e819
add text about adaptive randomization algorithm
aleksandraduda2 Jan 3, 2024
c8e392e
bigfixed randomized_dynamic
kamilsi Jan 4, 2024
432f617
merged, resolved conflicts
kamilsi Jan 4, 2024
7435968
Changes after code review
kamilsi Jan 8, 2024
d728693
Merge pull request #22 from ttscience/12-dynamic-minirand
kamilsi Jan 8, 2024
db94264
add initial devcontainer config
lwalejko Jan 8, 2024
5f48fe1
more devcontainer + rstudio
lwalejko Jan 8, 2024
c30fa5f
add default port for database
lwalejko Jan 9, 2024
a16f948
add autoreload
lwalejko Jan 9, 2024
6a1c6a5
add populate_db script
lwalejko Jan 9, 2024
0a3ad3a
Add autoreload improvements
lwalejko Jan 9, 2024
2cd23aa
add psql in dockerfiles
lwalejko Jan 9, 2024
2183c7f
exclude renv in vscode watcher
lwalejko Jan 9, 2024
edd256c
update renv
lwalejko Jan 9, 2024
0d7144d
make autoreload less verbose
lwalejko Jan 9, 2024
ee1d442
use db pool
lwalejko Jan 9, 2024
d46d515
Updated initialize.sql (removed table method and changed 'method_id' …
salatak Jan 9, 2024
cab31f1
Replaced 'method_id' by 'method'
salatak Jan 9, 2024
931ad94
Removed "method" table
kamilsi Jan 9, 2024
2ae4fa0
update renv.lock
lwalejko Jan 9, 2024
0551484
Replaced 'method_id' by 'method'
salatak Jan 9, 2024
19715a5
Merge branch '24-post-study-study_id-patientis-minimisation' of githu…
salatak Jan 9, 2024
bdd9210
Fixed tests
kamilsi Jan 9, 2024
0a1935f
Merge pull request #27 from ttscience/23-post-studyminimisation
kamilsi Jan 9, 2024
08b2483
add initial devcontainer config
lwalejko Jan 8, 2024
18a602b
more devcontainer + rstudio
lwalejko Jan 8, 2024
c18a96b
add default port for database
lwalejko Jan 9, 2024
2e5366a
add autoreload
lwalejko Jan 9, 2024
a29686b
add populate_db script
lwalejko Jan 9, 2024
c47bb08
Add autoreload improvements
lwalejko Jan 9, 2024
349d21d
add psql in dockerfiles
lwalejko Jan 9, 2024
611e4e1
exclude renv in vscode watcher
lwalejko Jan 9, 2024
ef44b01
update renv
lwalejko Jan 9, 2024
5228e51
make autoreload less verbose
lwalejko Jan 9, 2024
a39f9f9
use db pool
lwalejko Jan 9, 2024
d45fbf6
update renv.lock
lwalejko Jan 9, 2024
214d50d
fix connection_pool issues
lwalejko Jan 9, 2024
d816f2b
merge
lwalejko Jan 9, 2024
f29ff31
WIP: create study
kamilsi Jan 9, 2024
dc38049
WIP
kamilsi Jan 9, 2024
fe4b9fd
add clear_db script
lwalejko Jan 10, 2024
fe50f94
Merge remote-tracking branch 'origin/23-post-studyminimisation' into …
lwalejko Jan 10, 2024
f10251c
Created endpoint for randomization with Pocock method.
salatak Jan 10, 2024
9df0afc
Added validation to parse_pocock.
salatak Jan 11, 2024
81526f6
deps and devcontainer
lwalejko Jan 12, 2024
6d67afb
build in compose
lwalejko Jan 12, 2024
520c16c
psql running script
lwalejko Jan 12, 2024
3d4be28
db connection updates, validation and data persistence in study creation
lwalejko Jan 12, 2024
71f85e8
remove study-define since this method was replaced by create_study me…
lwalejko Jan 12, 2024
f5c95a4
add missing logger package
lwalejko Jan 12, 2024
6e3ed98
handle study output format correctly
lwalejko Jan 12, 2024
3b24fba
fix namespace
lwalejko Jan 12, 2024
c5e6510
regenerate man pages
lwalejko Jan 12, 2024
ab04d71
Added library::function()
salatak Jan 12, 2024
28dc823
Merge pull request #28 from ttscience/issue23
salatak Jan 12, 2024
77cab7a
Merging
salatak Jan 12, 2024
126c66e
Finalizing the endpoint. Changing the connection to the database. Ret…
salatak Jan 12, 2024
87f0a1d
smoke tests
kamilsi Jan 12, 2024
fc8f771
Merge pull request #26 from ttscience/24-post-study-study_id-patienti…
kamilsi Jan 12, 2024
32a704c
merged devel
kamilsi Jan 12, 2024
6fa574f
finished smoke tests, changed routing
kamilsi Jan 12, 2024
d956487
moved API utils to API dir
kamilsi Jan 12, 2024
387244c
bugfix
kamilsi Jan 12, 2024
27ae816
Merge pull request #29 from ttscience/smoke_tests
kamilsi Jan 12, 2024
f243634
Add simulations.Rmd (vignette code + text) with references.bib file
aleksandraduda2 Jan 25, 2024
ddaa8ea
Changed docker build strategy
kamilsi Jan 25, 2024
90f7445
reverted image tags
kamilsi Jan 25, 2024
8280039
Merge pull request #38 from ttscience/34-devel-images
kamilsi Jan 25, 2024
d93ff44
add chunk names
aleksandraduda2 Jan 26, 2024
c367c13
repair of block randomization function
aleksandraduda2 Jan 26, 2024
792f07e
Added Endpoint Response Structure Test
salatak Jan 16, 2024
2206805
Changing data transmission from URL to body in API requests
salatak Jan 26, 2024
2124c0c
Removed the assertion about the existence of a connection to the data…
salatak Jan 29, 2024
0313ff5
Merge pull request #40 from ttscience/API-testing
lwalejko Jan 29, 2024
80143a7
add migrations and cleaning DB on for test that uses database
lwalejko Jan 29, 2024
5d64291
autoreloader that works in WSL (without inotify support)
lwalejko Jan 29, 2024
1f3a430
remove redundant sql files
lwalejko Jan 29, 2024
99c2ee6
cleanup
lwalejko Jan 29, 2024
845c5d5
coverage support for api testing
lwalejko Jan 30, 2024
e02ddea
amendments to the adaptive randomisation simulation document
aleksandraduda2 Jan 31, 2024
55a8d7a
coverage
lwalejko Jan 31, 2024
11913fb
renv and docker
lwalejko Jan 31, 2024
ce5b2bd
change data to datax
aleksandraduda2 Jan 31, 2024
f544c5b
coverage in ci
lwalejko Jan 31, 2024
a0cd37b
apt-get instead of apt
lwalejko Jan 31, 2024
63cf54d
branches
lwalejko Jan 31, 2024
8673c41
sudo
lwalejko Jan 31, 2024
d190df7
postgres service port
lwalejko Jan 31, 2024
05943a1
migrate from CI
lwalejko Jan 31, 2024
7beb099
sudo
lwalejko Jan 31, 2024
701e24a
tee instead of shell stdout redirection
lwalejko Jan 31, 2024
20e6caa
remove old workflow
lwalejko Jan 31, 2024
668473c
improve db connection settings for tests
lwalejko Jan 31, 2024
64a9240
improve db handling
lwalejko Feb 1, 2024
edf1e2b
linter
lwalejko Feb 1, 2024
d163327
branches for linter
lwalejko Feb 1, 2024
88b63dc
fix linter warning in db.R
lwalejko Feb 1, 2024
8065925
linter
lwalejko Feb 1, 2024
dda1780
try roxygen2 workflow
lwalejko Feb 1, 2024
3367062
add docs for create_db_connection_pool
lwalejko Feb 1, 2024
263c8e1
Update documentation
lwalejko Feb 1, 2024
8887819
readme
lwalejko Feb 1, 2024
a9d3de4
deps and docker update
lwalejko Feb 1, 2024
b8f8b67
move custom range back to the randomize_minimisation_pocock method
lwalejko Feb 2, 2024
9a83223
optimized code + Rds data from 1000 simulations
JagGlo Feb 5, 2024
06826b7
merge branch
JagGlo Feb 5, 2024
00f3a34
Merge pull request #42 from ttscience/coverage-and-devops
lwalejko Feb 5, 2024
e97775f
Add more sensible lintr config
lwalejko Feb 5, 2024
8f6feaa
Added new tests for API. The error detection method has been unified …
salatak Feb 6, 2024
b9486ad
Merge pull request #45 from ttscience/add-linter-config
lwalejko Feb 6, 2024
26eecda
add sentry support
lwalejko Feb 6, 2024
622cfdb
Improved code style by {styler}
salatak Feb 6, 2024
37c4de5
changes in text after .RDS adding
aleksandraduda2 Feb 7, 2024
ce41eb1
interpunction
aleksandraduda2 Feb 7, 2024
343dae5
add missing id column
aleksandraduda2 Feb 8, 2024
916f6db
first part of README
JagGlo Feb 8, 2024
3d8d65b
redirect stdout and stderr to temporary files during test run
lwalejko Feb 8, 2024
8423d15
vignette as article
JagGlo Feb 8, 2024
abcec2a
Merge branch 'devel' into 44-adapting-the-code-to-changes-in-code-cov…
lwalejko Feb 8, 2024
32abee5
Merge branch 'devel' into vignette-simulation
JagGlo Feb 8, 2024
75ca03a
styler + updated .Rbuildignote
JagGlo Feb 8, 2024
0c8240c
increase number of connection retries for create_db_connection_pool
lwalejko Feb 8, 2024
5ac44ca
add text to readme and png
aleksandraduda2 Feb 8, 2024
9a13e28
lintr corrections
JagGlo Feb 8, 2024
61c3454
Merge branch 'vignette-simulation' of https://github.com/ttscience/un…
JagGlo Feb 8, 2024
4b72c81
README v2
JagGlo Feb 8, 2024
48b8c75
{linter} corrections
salatak Feb 8, 2024
1b56e5a
Merge pull request #46 from ttscience/44-adapting-the-code-to-changes…
lwalejko Feb 9, 2024
a342e42
Merge branch 'devel' into vignette-simulation
lwalejko Feb 9, 2024
52dd63e
fix tests
lwalejko Feb 9, 2024
9b5f493
Merge pull request #39 from ttscience/vignette-simulation
lwalejko Feb 9, 2024
af7cf2a
fix docker build and enable image building pipeline to avoid broken d…
lwalejko Feb 9, 2024
3a6a050
Merge pull request #56 from ttscience/fix-docker-build
kamilsi Feb 9, 2024
0139dd7
Merge branch 'devel' into sentry
lwalejko Feb 12, 2024
b704ca0
update renv
lwalejko Feb 12, 2024
2944565
do not export setup_sentry function
lwalejko Feb 12, 2024
044d21d
add missing comma
lwalejko Feb 12, 2024
b4d1ceb
GET /study endpoint
salatak Feb 12, 2024
0517753
add some tests for sentry integration
lwalejko Feb 13, 2024
23294cb
Update documentation
lwalejko Feb 13, 2024
a11588c
test for global_calling_handler
lwalejko Feb 13, 2024
8ee0f66
Merge branch 'sentry' of https://github.com/ttscience/unbiased into s…
lwalejko Feb 13, 2024
9337ed5
Merge pull request #47 from ttscience/sentry
JagGlo Feb 13, 2024
f1f9734
README after Kamil's review
JagGlo Feb 13, 2024
2b3c6c8
changes in part of purpose and scope
aleksandraduda2 Feb 13, 2024
eb08f30
Merge branch 'devel' into 31_documentation
kamilsi Feb 15, 2024
ddcfcf6
Update documentation
kamilsi Feb 15, 2024
834d1ad
Merge pull request #55 from ttscience/31_documentation
kamilsi Feb 15, 2024
7faabd3
audit log first poc
lwalejko Feb 15, 2024
94943df
Update documentation
lwalejko Feb 15, 2024
d2ba21f
Adding the GET/study and GET/study/{study_id} endpoints along with te…
salatak Feb 19, 2024
1825560
Merge branch 'devel' into 50-get-study
salatak Feb 19, 2024
7358b3c
Added sentry to endpoints
salatak Feb 19, 2024
d76250a
Changes resulting from code review + fix for catching errors
salatak Feb 19, 2024
d444619
Merge pull request #62 from ttscience/50-get-study
salatak Feb 19, 2024
939ae5e
Issue #59: study id validation with 404 status code
salatak Feb 19, 2024
2277283
Changed the study id search in the database: looked for a specific id…
salatak Feb 20, 2024
5334404
Changed status code from 400 to 404 when input incorrect study_id
salatak Feb 20, 2024
db29edf
Removal of unnecessary data parsing tests
salatak Feb 20, 2024
2c8eb53
Merge pull request #64 from ttscience/59-fixes-randomize-endpoint
lwalejko Feb 20, 2024
f6b70cc
Changed the study id search in the database: looked for a specific id…
salatak Feb 20, 2024
e94c746
Merge pull request #65 from ttscience/59-fixes-get-endpoints
lwalejko Feb 20, 2024
20a0628
saving audit logs and db and endpoint for geting study audit log
lwalejko Feb 20, 2024
3a5b72b
Merge branch '52-randomization-audit-trail' of https://github.com/tts…
lwalejko Feb 20, 2024
cf66240
Merge branch 'devel' into 52-randomization-audit-trail
lwalejko Feb 20, 2024
d4983af
Update documentation
lwalejko Feb 20, 2024
20546cd
implement audit log collection handling for all endpoints
lwalejko Feb 20, 2024
bec215c
remove unused functions
lwalejko Feb 20, 2024
720a69d
move error handling code to separate file
lwalejko Feb 20, 2024
db8901b
fix function scopes for coverage run
lwalejko Feb 20, 2024
ab8d6a6
simplify transaction handling for study creation
lwalejko Feb 20, 2024
32d6c8f
use check_study_exist method for checking if study exist
lwalejko Feb 20, 2024
8fa3508
remove redundant tryCatch block during saving randomized patient
lwalejko Feb 20, 2024
b02a8cd
ignore coverage for 2 lines that can be executed only in local develo…
lwalejko Feb 20, 2024
88d42a9
remove validation utils that are no longer used
lwalejko Feb 20, 2024
18a23d1
Merge branch '52-randomization-audit-trail' of https://github.com/tts…
lwalejko Feb 20, 2024
db140cc
Update documentation
lwalejko Feb 20, 2024
567d911
#51 Issue: get randomization list + tests
salatak Feb 21, 2024
d27236f
#51 Issue: added test to endpoint -> get randomization list
salatak Feb 22, 2024
0d6cdf4
Issue #67: used = TRUE after randomization
salatak Feb 22, 2024
a37ebf8
Issue #67: used = TRUE after randomization + test
salatak Feb 23, 2024
d5d97e3
Merge pull request #68 from ttscience/51-get-randomization-list
lwalejko Feb 23, 2024
6cd8b92
Merge pull request #69 from ttscience/67-used-is-false-by-default-in-…
kamilsi Feb 23, 2024
9c85adb
tests
lwalejko Feb 23, 2024
738f584
Update documentation
lwalejko Feb 23, 2024
d8cc29d
Merge branch 'devel' into 52-randomization-audit-trail
lwalejko Feb 23, 2024
2f52bf3
tests and upstream integration
lwalejko Feb 26, 2024
463f17f
Merge branch '52-randomization-audit-trail' of https://github.com/tts…
lwalejko Feb 26, 2024
694affe
Issue #70: Status code changed from 500 to 400. Added current_status …
salatak Feb 28, 2024
c950c2d
Small correction in the code
salatak Feb 28, 2024
29ecce6
Issue #71 Added range method tests in randomization funcion
salatak Feb 28, 2024
54d8c83
Merge pull request #74 from ttscience/70-randomization-endpoint-shoul…
lwalejko Feb 29, 2024
593658a
Changed in age: >55 instead >50
salatak Mar 1, 2024
976e86f
Add invalid JSON handling to error-handling.R
lwalejko Mar 1, 2024
a44f940
Merge pull request #78 from ttscience/vignette-simulation
JagGlo Mar 4, 2024
fc1b497
simplyfy JSON rendering in audit trail get endpoint
lwalejko Mar 4, 2024
377e4ce
rename methods and simplify checks
lwalejko Mar 4, 2024
b82633a
Update documentation
lwalejko Mar 4, 2024
712b54f
Add IP address and user agent to audit log
lwalejko Mar 4, 2024
4a171c7
Update documentation
lwalejko Mar 4, 2024
604d419
Remove unnecessary JSON validation
lwalejko Mar 4, 2024
0c88cc6
test for malformed request
lwalejko Mar 4, 2024
bb61fa3
Merge branch '52-randomization-audit-trail' of https://github.com/tts…
lwalejko Mar 4, 2024
72c0a3a
Add IP address and user agent to audit logs api
lwalejko Mar 4, 2024
dc0a5c1
Update pkgdown build_site_github_pages install parameter
lwalejko Mar 4, 2024
4856c17
Add setup-renv action for package dependencies
lwalejko Mar 4, 2024
44c626f
update packages and restore renv in pkgdown workflow
lwalejko Mar 5, 2024
cd20816
Update pkgdown.yaml workflow
lwalejko Mar 5, 2024
3c7957e
Update Dockerfile to use devtools for package installation
lwalejko Mar 5, 2024
8c34747
disable code coverage for default_error_handler
lwalejko Mar 5, 2024
85919a4
Merge pull request #60 from ttscience/52-randomization-audit-trail
kamilsi Mar 5, 2024
e8b448c
Update version number and API version
lwalejko Mar 5, 2024
df8b7d8
Merge pull request #79 from ttscience/fix-pkgdown
kamilsi Mar 5, 2024
ce589e4
Merge pull request #75 from ttscience/71-untested-custom_range-method…
kamilsi Mar 5, 2024
82c5f72
Merge branch 'main' into devel
lwalejko Mar 5, 2024
4a6d847
Merge pull request #81 from ttscience/bump-version
kamilsi Mar 5, 2024
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
7 changes: 7 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
^renv$
^renv\.lock$
^\.github$
^unbiased\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^_pkgdown\.yml$
^docs$
^pkgdown$
^vignettes/articles$
21 changes: 21 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ghcr.io/rocker-org/devcontainer/r-ver:4.2

RUN apt update && apt-get install -y --no-install-recommends \
# httpuv
libz-dev \
# sodium
libsodium-dev \
# RPostgres
libpq-dev libssl-dev postgresql-client \
# R_X11
libxt-dev

RUN pip install watchdog[watchmedo]

ENV RENV_CONFIG_SANDBOX_ENABLED=FALSE

# Install database migration tool
RUN curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | apt-key add - && \
echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ focal main" > /etc/apt/sources.list.d/migrate.list && \
apt-get update && \
apt-get install -y migrate
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "R unbiased",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/rocker-org/devcontainer-features/renv-cache:0": {},
"ghcr.io/rocker-org/devcontainer-features/rstudio-server:0": {
"singleUser": true,
"version": "stable"
}
},
"postCreateCommand": "R -q -e 'renv::restore()'",
// "postAttachCommand": {
// "rstudio-start": "rserver"
// },
"forwardPorts": [
8787,
5454
],
"portsAttributes": {
"8787": {
"label": "RStudio IDE"
},
"5454": {
"label": "PGAdmin"
}
},
"customizations": {
"vscode": {
"extensions": [
"RDebugger.r-debugger"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.plot.useHttpgd": true
}
}
}
}
57 changes: 57 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: '3.8'

services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile

volumes:
- ../..:/workspaces:cached

# Overrides default command so things don't shut down after the process ends.
command: sleep infinity

# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:db

# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)

environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST: db

pgadmin:
image: dpage/pgadmin4
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST: db
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: pgadmin
volumes:
- pga-data:/tmp/dev/pga/data
depends_on:
- db
ports:
- "5454:80"

db:
image: ghcr.io/ttscience/postgres-temporal-tables/postgres-temporal-tables:latest
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)

volumes:
postgres-data:
pga-data:
33 changes: 0 additions & 33 deletions .github/workflows/R-CMD-check.yaml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
name: Docker
name: Build and Publish Docker Images

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '15 0 * * *'
push:
branches: [ "main" ]
branches: [ "main", "devel" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
branches: [main, devel]
workflow_dispatch:

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
BRANCH_TAG: ${{ github.ref == 'refs/heads/devel' && 'unbiased-dev' || 'latest' }}


jobs:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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:
paths: ["R/**"]

name: Document

jobs:
document:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::roxygen2
needs: roxygen2

- name: Document
run: roxygen2::roxygenise()
shell: Rscript {0}

- name: Commit and push changes
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
git add man/\* NAMESPACE DESCRIPTION
git commit -m "Update documentation" || echo "No changes to commit"
git pull --ff-only
git push origin
32 changes: 32 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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, devel]
pull_request:
branches: [main, devel]

name: lint

jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint

- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
51 changes: 51 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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, master]
pull_request:
branches: [main, master]
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 }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

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

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

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

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

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
Loading
Loading