Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
^R/secure.global.ranking.md$
^_pkgdown\.yml$
^docs$
^dsBase_6.3.5.tar.gz$
^dsBase_6.3.5-permissive.tar.gz$
^dsBase_6.3.6.tar.gz$
^dsBase_6.3.6-permissive.tar.gz$
^dsDanger_6.3.4.tar.gz$
^\.circleci$
^\.circleci/config\.yml$
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dsBaseClient_test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
- name: Install dsBase to Armadillo
run: |
curl -u admin:admin -X GET http://localhost:8080/packages
curl -u admin:admin -H 'Content-Type: multipart/form-data' -F "file=@dsBase_6.3.5-permissive.tar.gz" -X POST http://localhost:8080/install-package
curl -u admin:admin -H 'Content-Type: multipart/form-data' -F "file=@dsBase_6.3.6-permissive.tar.gz" -X POST http://localhost:8080/install-package
sleep 60
docker restart dsbaseclient-armadillo-1
sleep 30
Expand Down
5 changes: 3 additions & 2 deletions R/ds.glm.R
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ ds.glm <- function(formula=NULL, data=NULL, family=NULL, offset=NULL, weights=NU
# Sum participants only during first iteration.
nsubs.total<-Reduce(f="+", .select(study.summary, 'numsubs'))
# Save family
f <- study.summary[[1]]$family
family.value <- study.summary[[1]]$family
f <- if (is.list(family.value) && "family" %in% names(family.value)) family.value$family else family.value
}

#Create variance covariance matrix as inverse of information matrix
Expand Down Expand Up @@ -640,7 +641,7 @@ ds.glm <- function(formula=NULL, data=NULL, family=NULL, offset=NULL, weights=NU
beta.vect.final<-beta.vect.next

scale.par <- 1
if(f$family== 'gaussian') {
if(f == 'gaussian') {
scale.par <- dev.total / (nsubs.total-length(beta.vect.next))
}

Expand Down
8 changes: 4 additions & 4 deletions armadillo_azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ schedules:
- master
always: true
- cron: "0 2 * * *"
displayName: Nightly build - v6.3.5-dev
displayName: Nightly build - v6.3.6-dev
branches:
include:
- v6.3.5-dev
- v6.3.6-dev
always: true

#########################################################################################
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
sudo apt-get upgrade -y

sudo apt-get install -qq libxml2-dev libcurl4-openssl-dev libssl-dev libgsl-dev libgit2-dev r-base -y
sudo apt-get install -qq libharfbuzz-dev libfribidi-dev libmagick++-dev libudunits2-dev -y
sudo apt-get install -qq libharfbuzz-dev libfribidi-dev libmagick++-dev libudunits2-dev libuv1-dev -y
sudo R -q -e "install.packages(c('devtools','covr'), dependencies=TRUE, repos='https://cloud.r-project.org')"
sudo R -q -e "install.packages(c('fields','meta','metafor','ggplot2','gridExtra','data.table'), dependencies=TRUE, repos='https://cloud.r-project.org')"
sudo R -q -e "install.packages(c('DSI','DSOpal','DSLite'), dependencies=TRUE, repos='https://cloud.r-project.org')"
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:

curl -u admin:admin -X GET http://localhost:8080/packages

curl -u admin:admin --max-time 300 -v -H 'Content-Type: multipart/form-data' -F "file=@dsBase_6.3.5-permissive.tar.gz" -X POST http://localhost:8080/install-package
curl -u admin:admin --max-time 300 -v -H 'Content-Type: multipart/form-data' -F "file=@dsBase_6.3.6-permissive.tar.gz" -X POST http://localhost:8080/install-package
sleep 60

docker container restart dsbaseclient_armadillo_1
Expand Down
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ schedules:
- master
always: true
- cron: "0 2 * * *"
displayName: Nightly build - v6.3.5-dev
displayName: Nightly build - v6.3.6-dev
branches:
include:
- v6.3.5-dev
- v6.3.6-dev
always: true

#########################################################################################
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
sudo apt-get upgrade -y

sudo apt-get install -qq libxml2-dev libcurl4-openssl-dev libssl-dev libgsl-dev libgit2-dev r-base -y
sudo apt-get install -qq libharfbuzz-dev libfribidi-dev libmagick++-dev libudunits2-dev -y
sudo apt-get install -qq libharfbuzz-dev libfribidi-dev libmagick++-dev libudunits2-dev libuv1-dev -y
sudo R -q -e "install.packages(c('curl','httr'), dependencies=TRUE, repos='https://cloud.r-project.org')"
sudo R -q -e "install.packages(c('devtools','covr'), dependencies=TRUE, repos='https://cloud.r-project.org')"
sudo R -q -e "install.packages(c('fields','meta','metafor','ggplot2','gridExtra','data.table'), dependencies=TRUE, repos='https://cloud.r-project.org')"
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
- bash: |
R -q -e "library(opalr); opal <- opal.login(username = 'administrator', password = 'datashield_test&', url = 'http://localhost:8080'); opal.put(opal, 'system', 'conf', 'general', '_rPackage'); opal.logout(opal)"

R -q -e "library(opalr); opal <- opal.login('administrator','datashield_test&', url='http://localhost:8080/'); dsadmin.install_github_package(opal, 'dsBase', username = 'datashield', ref = 'v6.3.5-dev'); opal.logout(opal)"
R -q -e "library(opalr); opal <- opal.login('administrator','datashield_test&', url='http://localhost:8080/'); dsadmin.install_github_package(opal, 'dsBase', username = 'datashield', ref = 'v6.3.6-dev'); opal.logout(opal)"

sleep 60

Expand Down
Binary file not shown.
Binary file renamed dsBase_6.3.5.tar.gz → dsBase_6.3.6.tar.gz
Binary file not shown.
8 changes: 4 additions & 4 deletions opal_azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ schedules:
- master
always: true
- cron: "0 2 * * *"
displayName: Nightly build - v6.3.5-dev
displayName: Nightly build - v6.3.6-dev
branches:
include:
- v6.3.5-dev
- v6.3.6-dev
always: true

#########################################################################################
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
sudo apt-get upgrade -y

sudo apt-get install -qq libxml2-dev libcurl4-openssl-dev libssl-dev libgsl-dev libgit2-dev r-base -y
sudo apt-get install -qq libharfbuzz-dev libfribidi-dev libmagick++-dev libudunits2-dev -y
sudo apt-get install -qq libharfbuzz-dev libfribidi-dev libmagick++-dev libudunits2-dev libuv1-dev -y
sudo R -q -e "install.packages(c('curl','httr'), dependencies=TRUE, repos='https://cloud.r-project.org')"
sudo R -q -e "install.packages(c('devtools','covr'), dependencies=TRUE, repos='https://cloud.r-project.org')"
sudo R -q -e "install.packages(c('fields','meta','metafor','ggplot2','gridExtra','data.table'), dependencies=TRUE, repos='https://cloud.r-project.org')"
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
- bash: |
R -q -e "library(opalr); opal <- opal.login(username = 'administrator', password = 'datashield_test&', url = 'http://localhost:8080'); opal.put(opal, 'system', 'conf', 'general', '_rPackage'); opal.logout(opal)"

R -q -e "library(opalr); opal <- opal.login('administrator','datashield_test&', url='http://localhost:8080/'); dsadmin.install_github_package(opal, 'dsBase', username = 'datashield', ref = 'v6.3.5-dev'); opal.logout(opal)"
R -q -e "library(opalr); opal <- opal.login('administrator','datashield_test&', url='http://localhost:8080/'); dsadmin.install_github_package(opal, 'dsBase', username = 'datashield', ref = 'v6.3.6-dev'); opal.logout(opal)"

sleep 60

Expand Down
11 changes: 8 additions & 3 deletions tests/docker/armadillo/standard/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@ stdout.log.path: '/logs/armadillo.log'

logging:
level:
root: INFO
root: "warn"
## change to DEBUG to have more details, typically when developing
org.molgenis: INFO
org.molgenis: "warn"
## Don't log upload data
org.apache.coyote.http11.Http11InputBuffer: INFO
org.apache.coyote.http11.Http11InputBuffer: "warn"
## SpringFramework
org.springframework.boot: "warn"
org.springframework.web: "warn"
org.springframework.core: "warn"
org.springframework.codex: "warn"
26 changes: 13 additions & 13 deletions tests/testthat/perf_files/armadillo_hp-laptop-quay_perf-profile.csv
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"refer_name","rate","lower_tolerance","upper_tolerance"
"conndisconn::perf::simple0","0.04918","0.5","2"
"ds.abs::perf::0","1.184","0.5","2"
"ds.asInteger::perf:0","1.297","0.5","2"
"ds.asList::perf:0","2.884","0.5","2"
"ds.asNumeric::perf:0","1.354","0.5","2"
"ds.assign::perf::0","2.745","0.5","2"
"ds.class::perf::combine:0","3.261","0.5","2"
"ds.colnames::perf:0","8.566","0.5","2"
"ds.exists::perf::combine:0","6.342","0.5","2"
"ds.length::perf::combine:0","7.835","0.5","2"
"ds.mean::perf::combine:0","8.127","0.5","2"
"ds.mean::perf::split:0","8.109","0.5","2"
"void::perf::void::0","20280.0","0.5","2"
"conndisconn::perf::simple0","0.06790","0.5","2"
"ds.abs::perf::0","1.998","0.5","2"
"ds.asInteger::perf:0","2.111","0.5","2"
"ds.asList::perf:0","4.550","0.5","2"
"ds.asNumeric::perf:0","1.879","0.5","2"
"ds.assign::perf::0","4.806","0.5","2"
"ds.class::perf::combine:0","3.865","0.5","2"
"ds.colnames::perf:0","9.577","0.5","2"
"ds.exists::perf::combine:0","8.411","0.5","2"
"ds.length::perf::combine:0","7.957","0.5","2"
"ds.mean::perf::combine:0","9.049","0.5","2"
"ds.mean::perf::split:0","9.429","0.5","2"
"void::perf::void::0","21400.0","0.5","2"
4 changes: 2 additions & 2 deletions tests/testthat/test-smk-ds.elspline.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test_that("elspline", {
expect_equal(res.mod$errorMessage[3], "No errors")
expect_equal(res.mod$nsubs, 7477)
expect_equal(res.mod$iter, 3)
expect_true("family" %in% class(res.mod$family))
expect_true("character" %in% class(res.mod$family))
expect_equal(res.mod$formula, "D$LAB_TRIG ~ elsplineDS")
expect_true("matrix" %in% class(res.mod$coefficients))
expect_true("array" %in% class(res.mod$coefficients))
Expand Down Expand Up @@ -106,7 +106,7 @@ test_that("elspline", {
expect_equal(res.mod$errorMessage[3], "No errors")
expect_equal(res.mod$nsubs, 7477)
expect_equal(res.mod$iter, 3)
expect_true("family" %in% class(res.mod$family))
expect_true("character" %in% class(res.mod$family))
expect_equal(res.mod$formula, "D$LAB_TRIG ~ elsplineDS2")
expect_true("matrix" %in% class(res.mod$coefficients))
expect_true("array" %in% class(res.mod$coefficients))
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-smk-ds.glm-binomial.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test_that("glm_binomial", {
expect_equal(res$errorMessage[3], "No errors")
expect_equal(res$nsubs, 7485)
expect_equal(res$iter, 9)
expect_true("family" %in% class(res$family))
expect_true("character" %in% class(res$family))
expect_equal(res$formula, "D$DIS_DIAB ~ D$GENDER * D$PM_BMI_CONTINUOUS + D$LAB_HDL")
expect_true("matrix" %in% class(res$coefficients))
expect_equal(res$dev, 1036.031, tolerance=0.00001)
Expand All @@ -69,7 +69,7 @@ test_that("glm_binomial, with check", {
expect_equal(res$errorMessage[3], "No errors")
expect_equal(res$nsubs, 7485)
expect_equal(res$iter, 9)
expect_true("family" %in% class(res$family))
expect_true("character" %in% class(res$family))
expect_equal(res$formula, "D$DIS_DIAB ~ D$GENDER * D$PM_BMI_CONTINUOUS + D$LAB_HDL")
expect_true("matrix" %in% class(res$coefficients))
expect_equal(res$dev, 1036.031, tolerance=0.00001)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-smk-ds.glm-gaussian.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test_that("glm_gaussian", {
expect_equal(res$errorMessage[3], "No errors")
expect_equal(res$nsubs, 7800)
expect_equal(res$iter, 3)
expect_true("family" %in% class(res$family))
expect_true("character" %in% class(res$family))
expect_equal(res$formula, "D$LAB_TSC ~ D$LAB_TRIG")
expect_true("matrix" %in% class(res$coefficients))
expect_equal(res$dev, 8936.32, tolerance=0.00001)
Expand All @@ -69,7 +69,7 @@ test_that("glm_gaussian, with check", {
expect_equal(res$errorMessage[3], "No errors")
expect_equal(res$nsubs, 7800)
expect_equal(res$iter, 3)
expect_true("family" %in% class(res$family))
expect_true("character" %in% class(res$family))
expect_equal(res$formula, "D$LAB_TSC ~ D$LAB_TRIG")
expect_true("matrix" %in% class(res$coefficients))
expect_equal(res$dev, 8936.32, tolerance=0.00001)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-smk-ds.glm-poisson.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test_that("glm_gaussian", {
expect_equal(res$errorMessage[3], "No errors")
expect_equal(res$nsubs, 6299)
expect_equal(res$iter, 5)
expect_true("family" %in% class(res$family))
expect_true("character" %in% class(res$family))
expect_equal(res$formula, "D$survtime ~ 1 + D$time.id + D$female")
expect_true("matrix" %in% class(res$coefficients))
expect_equal(res$dev, 3522.598, tolerance=0.00001)
Expand All @@ -69,7 +69,7 @@ test_that("glm_gaussian, which check", {
expect_equal(res$errorMessage[3], "No errors")
expect_equal(res$nsubs, 6299)
expect_equal(res$iter, 5)
expect_true("family" %in% class(res$family))
expect_true("character" %in% class(res$family))
expect_equal(res$formula, "D$survtime ~ 1 + D$time.id + D$female")
expect_true("matrix" %in% class(res$coefficients))
expect_equal(res$dev, 3522.598, tolerance=0.00001)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-smk-ds.lspline.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test_that("lspline", {
expect_equal(res.mod$errorMessage[3], "No errors")
expect_equal(res.mod$nsubs, 7477)
expect_equal(res.mod$iter, 3)
expect_true("family" %in% class(res.mod$family))
expect_true("character" %in% class(res.mod$family))
expect_equal(res.mod$formula, "D$LAB_TRIG ~ lsplineDS")
expect_true("matrix" %in% class(res.mod$coefficients))
expect_true("array" %in% class(res.mod$coefficients))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-smk-ds.ns.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test_that("ns", {
expect_equal(res.mod$errorMessage[3], "No errors")
expect_equal(res.mod$nsubs, 7477)
expect_equal(res.mod$iter, 3)
expect_true("family" %in% class(res.mod$family))
expect_true("character" %in% class(res.mod$family))
expect_equal(res.mod$formula, "D$LAB_TRIG ~ nsDS")
expect_true("matrix" %in% class(res.mod$coefficients))
expect_true("array" %in% class(res.mod$coefficients))
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-smk-ds.qlspline.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test_that("qlspline", {
expect_equal(res.mod$errorMessage[3], "No errors")
expect_equal(res.mod$nsubs, 7477)
expect_equal(res.mod$iter, 3)
expect_true("family" %in% class(res.mod$family))
expect_true("character" %in% class(res.mod$family))
expect_equal(res.mod$formula, "D$LAB_TRIG ~ qlsplineDS")
expect_true("matrix" %in% class(res.mod$coefficients))
expect_true("array" %in% class(res.mod$coefficients))
Expand Down Expand Up @@ -108,7 +108,7 @@ test_that("qlspline", {
expect_equal(res.mod$errorMessage[3], "No errors")
expect_equal(res.mod$nsubs, 7477)
expect_equal(res.mod$iter, 3)
expect_true("family" %in% class(res.mod$family))
expect_true("character" %in% class(res.mod$family))
expect_equal(res.mod$formula, "D$LAB_TRIG ~ qlsplineDS2")
expect_true("matrix" %in% class(res.mod$coefficients))
expect_true("array" %in% class(res.mod$coefficients))
Expand Down