Skip to content

Commit 1aa5c13

Browse files
Merge pull request #458 from StuartWheater/v6.3.5-dev
Update to glmSLMADS.assign and tidyups
2 parents 05c8de2 + d79c7d2 commit 1aa5c13

144 files changed

Lines changed: 157 additions & 173 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description: Base 'DataSHIELD' functions for the server side. 'DataSHIELD' is a
55
been designed to only share non disclosive summary statistics, with built in automated output
66
checking based on statistical disclosure control. With data sites setting the threshold values for
77
the automated output checks. For more details, see 'citation("dsBase")'.
8-
Version: 6.3.5.9000
8+
Version: 6.3.5
99
Authors@R: c(person(given = "Paul",
1010
family = "Burton",
1111
role = c("aut"),

R/glmSLMADS.assign.R

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,25 @@
1818
#' @export
1919
glmSLMADS.assign <- function(formula, family, offsetName, weightsName, dataName){
2020

21-
#############################################################
22-
#MODULE 1: CAPTURE THE nfilter SETTINGS #
23-
thr <- dsBase::listDisclosureSettingsDS() #
24-
nfilter.tab <- as.numeric(thr$nfilter.tab) #
25-
nfilter.glm <- as.numeric(thr$nfilter.glm) #
26-
#nfilter.subset<-as.numeric(thr$nfilter.subset) #
27-
#nfilter.string<-as.numeric(thr$nfilter.string) #
28-
#############################################################
21+
# Convert transmitable text for special link variance combinations back to full representation
22+
if(family=="quasigamma.link_log")
23+
{family<-"quasi(link=log,variance=mu^2)"}
2924

30-
########################################
31-
############
32-
#Convert transmitable text for special link variance combinations back to full representation
33-
if(family=="quasigamma.link_log")
34-
{family<-"quasi(link=log,variance=mu^2)"}
25+
if(family=="Gamma.link_log")
26+
{family<-"Gamma(link=log)"}
3527

36-
if(family=="Gamma.link_log")
37-
{family<-"Gamma(link=log)"}
38-
#############
28+
# Correctly name offset, weights and data objects in function call
29+
# (to allow glmPredict to work correctly later)
30+
calltext <- paste0("mg<-glm(formula,family=",family,",offset=",
31+
offsetName,",weights=",weightsName,",data=", dataName,",x=TRUE)")
3932

40-
#Activate family object (this may not be necessary as character string may already be OK
41-
#but just checking
42-
final.family.object<-eval(parse(text=family))
33+
eval(parse(text=calltext))
4334

35+
# update the call object to include the actual formula
36+
mg$call$formula <- formula
4437

45-
#Correctly name offset, weights and data objects in function call
46-
#(to allow glmPredict to work correctly later)
47-
calltext<-paste0("mg<-glm(formula,family=",family,",offset=",
48-
offsetName,",weights=",weightsName,",data=", dataName,",x=TRUE)")
49-
50-
eval(parse(text=calltext))
51-
52-
return(mg)
38+
return(mg)
5339

5440
}
55-
5641
# ASSIGN FUNCTION
5742
# glmSLMADS.assign

azure-pipelines.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ jobs:
253253
echo 'branch:'$(branchName) >> $(datetime).txt
254254
echo 'os:'$(lsb_release -ds) >> $(datetime).txt
255255
echo 'R:'$(R --version | head -n 1) >> $(datetime).txt
256-
echo 'opal:'$(opal system --opal localhost:8080 --user administrator --password "datashield_test&" --version) >> $(datetime).txt
257256
258257
workingDirectory: $(Pipeline.Workspace)/logs
259258
displayName: 'Write versions to file'

docs/404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ pandoc: 3.1.3
22
pkgdown: 2.2.0
33
pkgdown_sha: ~
44
articles: {}
5-
last_built: 2025-11-30T16:44Z
5+
last_built: 2026-02-20T10:54Z

docs/reference/BooleDS.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/absDS.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)