Skip to content

Commit

Permalink
Merge pull request #20 from StuartWheater/main
Browse files Browse the repository at this point in the history
Removal of 'listDisclosureSettingsDS' and minor updates
  • Loading branch information
neelsoumya authored Dec 8, 2022
2 parents b2959fd + 4c9c15a commit 34245dd
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 143 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
^.*\.Rproj$
^\.Rproj\.user$
^.github$
^dssurvival lay summary.pdf$
^DAGStat_sofack \(1\).pdf$
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dsSurvival
Title: dsSurvival: Privacy preserving survival models for federated individual patient meta-analysis in DataSHIELD
Description: DataSHIELD server side base functions for building survival models.
Version: 2.1.0
Version: 2.1.1
Author: Soumya Banerjee, Demetris Avraam, Xavier Escriba Montagut, Juan Gonzalez, Paul Burton and Tom R P Bishop <[email protected]>
Maintainer: Soumya Banerjee, Demetris Avraam, Xavier Escriba Montagut, Juan Gonzalez, Paul Burton and Tom R P Bishop <[email protected]>
License: GPL-3
Expand All @@ -16,4 +16,4 @@ Imports:
reshape2,
dsBase,
fANCOVA
RoxygenNote: 7.1.2
RoxygenNote: 7.2.2
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export(cox.zphSLMADS)
export(coxphSLMADS)
export(coxphSLMAassignDS)
export(coxphSummaryDS)
export(listDisclosureSettingsDS)
export(plotsurvfitDS)
export(summarySurvDS)
export(survfitDS)
Expand Down
2 changes: 1 addition & 1 deletion R/SurvDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SurvDS<-function(time = NULL,
{
#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
thr <- listDisclosureSettingsDS() #
thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand Down
2 changes: 1 addition & 1 deletion R/cox.zphSLMADS.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cox.zphSLMADS<-function(fit = NULL,

#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
thr <- listDisclosureSettingsDS() #
thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand Down
2 changes: 1 addition & 1 deletion R/coxphSLMADS.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ coxphSLMADS<-function(formula = NULL,

#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
thr <- listDisclosureSettingsDS() #
thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand Down
2 changes: 1 addition & 1 deletion R/coxphSLMAassignDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ coxphSLMAassignDS<-function(formula = NULL,

#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
thr <- listDisclosureSettingsDS() #
thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand Down
4 changes: 2 additions & 2 deletions R/coxphSummaryDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ coxphSummaryDS<-function(x = NULL

#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
thr <- listDisclosureSettingsDS() #
thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand All @@ -39,7 +39,7 @@ coxphSummaryDS<-function(x = NULL
if (is.null(x))
{
stop("The name of the server-side fit Cox proportional hazards model must be set", call.=FALSE)
}
}


# evaluate the model fit parameter in parent environment
Expand Down
42 changes: 0 additions & 42 deletions R/listDisclosureSettingsDS.R

This file was deleted.

2 changes: 1 addition & 1 deletion R/plotsurvfitDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plotsurvfitDS<-function(formula = NULL,

#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
# thr <- listDisclosureSettingsDS() #
# thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand Down
2 changes: 1 addition & 1 deletion R/summarySurvDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ summarySurvDS<-function(object=NULL)

#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
thr <- listDisclosureSettingsDS() #
thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand Down
2 changes: 1 addition & 1 deletion R/survfitDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ survfitDS<-function(formula=NULL)
{
#########################################################################
# DataSHIELD MODULE: CAPTURE THE nfilter SETTINGS #
thr <- listDisclosureSettingsDS() #
thr <- dsBase::listDisclosureSettingsDS() #
#nfilter.tab<-as.numeric(thr$nfilter.tab) #
#nfilter.glm<-as.numeric(thr$nfilter.glm) #
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
Expand Down
2 changes: 1 addition & 1 deletion R/vcovDS.coxph.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ vcovDS.coxph<-function(object=NULL)

surv_obj<-eval(parse(text=object), envir = parent.frame())

if (class(surv_obj)!="coxph")
if (! any(c("coxph") %in% class(surv_obj)))
{
stop("Object is not of class survival::coxph, please check the name", call.=FALSE)
}
Expand Down
18 changes: 0 additions & 18 deletions man/listDisclosureSettingsDS.Rd

This file was deleted.

70 changes: 0 additions & 70 deletions tests/testthat/test-smk-listDisclosureSettingsDS.R

This file was deleted.

0 comments on commit 34245dd

Please sign in to comment.