Skip to content

Commit cf31bb5

Browse files
Merge pull request datashield#528 from StuartWheater/v6.3.1-dev
Updates to fix R 4.4 manual processing
2 parents 59e22bd + 13a689b commit cf31bb5

168 files changed

Lines changed: 664 additions & 488 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.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
inst/tests/test-template.R
1111
azure-pipelines.Rout
1212
tests/testthat/connection_to_datasets/local_settings.csv
13-
tests/docker/armadillo/standard/config/
1413
tests/docker/armadillo/standard/logs/
1514
tests/docker/armadillo/standard/data/

R/ds.glm.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#'
4747
#' In the \code{family} argument can be specified three types of models to fit:
4848
#'
49-
#' \itemize{
49+
#' \describe{
5050
#' \item{\code{"gaussian"}}{: conventional linear model with normally distributed errors}
5151
#' \item{\code{"binomial"}}{: conventional unconditional logistic regression model}
5252
#' \item{\code{"poisson"}}{: Poisson regression model which is the most used in survival analysis.
@@ -190,7 +190,7 @@
190190
#' @return \code{family}: error family and link function.
191191
#' @return \code{formula}: model formula, see description of formula as an input parameter (above).
192192
#' @return \code{coefficients}: a matrix with 5 columns:
193-
#' \itemize{
193+
#' \describe{
194194
#' \item{First}{: the names of all of the regression parameters (coefficients) in the model}
195195
#' \item{second}{: the estimated values}
196196
#' \item{third}{: corresponding standard errors of the estimated values}

R/ds.glmSLMA.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
#' relatively widely.
9292
#'
9393
#' The standard models include:
94-
#' \itemize{
94+
#' \describe{
9595
#' \item{\code{"gaussian"}}{: conventional linear model with normally distributed errors}
9696
#' \item{\code{"binomial"}}{: conventional unconditional logistic regression model}
9797
#' \item{\code{"poisson"}}{: Poisson regression model which is often used in epidemiological
@@ -199,7 +199,7 @@
199199
#' a series of other list objects that represent inferences aggregated across studies.
200200
#' @return the study specific items include:
201201
#' @return \code{coefficients}: a matrix with 5 columns:
202-
#' \itemize{
202+
#' \describe{
203203
#' \item{First}{: the names of all of the regression parameters (coefficients) in the model}
204204
#' \item{second}{: the estimated values}
205205
#' \item{third}{: corresponding standard errors of the estimated values}

R/ds.glmerSLMA.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#'
4545
#'
4646
#' In the \code{family} argument can be specified two types of models to fit:
47-
#' \itemize{
47+
#' \describe{
4848
#' \item{\code{"binomial"}}{: logistic regression models}
4949
#' \item{\code{"poisson"}}{: poisson regression models}
5050
#' }
@@ -133,7 +133,7 @@
133133
#' The list of elements returned by \code{ds.glmerSLMA} is mentioned below:
134134
#'
135135
#' @return \code{coefficients}: a matrix with 5 columns:
136-
#' \itemize{
136+
#' \describe{
137137
#' \item{First}{: the names of all of the regression parameters (coefficients) in the model}
138138
#' \item{second}{: the estimated values}
139139
#' \item{third}{: corresponding standard errors of the estimated values}

R/ds.heatmapPlot.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
#' minimum and maximum value. This was done to reduce the risk of potential disclosure.
1212
#'
1313
#' In the argument \code{type} can be specified two types of graphics to display:
14-
#' \itemize{
14+
#' \describe{
1515
#' \item{\code{'combine'}}{: a combined heat map plot is displayed}
1616
#' \item{\code{'split'}}{: each heat map is plotted separately}
1717
#' }
1818
#'
1919
#' In the argument \code{show} can be specified two options:
20-
#' \itemize{
20+
#' \describe{
2121
#' \item{\code{'all'}}{: the ranges of the variables are used as plot limits}
2222
#' \item{\code{'zoomed'}}{: the plot is zoomed to the region where the actual data are}
2323
#' }
2424
#'
2525
#' In the argument \code{method} can be specified 3 different heat map to be created:
26-
#' \itemize{
26+
#' \describe{
2727
#' \item{\code{'smallCellsRule'}}{: the heat map of the actual variables is
2828
#' created but grids with low counts are replaced with grids with zero counts}
2929
#' \item{\code{'deterministic'}}{: the heat map of the scaled centroids of each

R/ds.histogram.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
#' the single plots.
77
#'
88
#' In the argument \code{type} can be specified two types of graphics to display:
9-
#' \itemize{
9+
#' \describe{
1010
#' \item{\code{'combine'}}{: a histogram that merges the single plot is displayed.}
1111
#' \item{\code{'split'}}{: each histogram is plotted separately.}
1212
#' }
1313
#'
1414
#' In the argument \code{method} can be specified 3 different histograms to be created:
15-
#' \itemize{
15+
#' \describe{
1616
#' \item{\code{'smallCellsRule'}}{: the histogram of the actual variable is
1717
#' created but bins with low counts are removed.}
1818
#' \item{\code{'deterministic'}}{: the histogram of the scaled centroids of each
@@ -48,7 +48,7 @@
4848
#' By default the value of noise is set to be equal to 0.25.
4949
#'
5050
#' In the argument \code{vertical.axis} can be specified two types of histograms:
51-
#' \itemize{
51+
#' \describe{
5252
#' \item{\code{'Frequency'}}{: the histogram of the frequencies
5353
#' is returned.}
5454
#' \item{\code{'Density'}}{: the histogram of the densities

R/ds.lmerSLMA.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
#' @return \code{ds.lmerSLMA} returns a list of elements mentioned
125125
#' below separately for each study.
126126
#' @return \code{coefficients}: a matrix with 5 columns:
127-
#' \itemize{
127+
#' \describe{
128128
#' \item{First}{: the names of all of the regression parameters (coefficients) in the model}
129129
#' \item{second}{: the estimated values}
130130
#' \item{third}{: corresponding standard errors of the estimated values}

R/ds.names.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' for example, it only works to extract names that already exist,
77
#' not to create new names for objects. The function is restricted to objects of
88
#' type list, but this includes objects that have a primary class other than list but which
9-
#' return TRUE to the native R function {is.list}. As an example this includes
9+
#' return TRUE to the native R function \code{is.list}. As an example this includes
1010
#' the multi-component object created by fitting a generalized linear model
1111
#' using ds.glmSLMA. The resultant object saved on each server separately
1212
#' is formally of class "glm" and "ls" but responds TRUE to is.list(),

R/ds.sample.R

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#' on the serverside
55
#' or - as a special case - randomly permutes a vector, dataframe or matrix.
66
#' @details Clientside function ds.sample calls serverside
7-
#' assign function sampleDS. Based on the native R function {sample()} but deals
8-
#' slightly differently with data.frames and matrices. Specifically the {sample()}
7+
#' assign function sampleDS. Based on the native R function \code{sample()} but deals
8+
#' slightly differently with data.frames and matrices. Specifically the \code{sample()}
99
#' function in R identifies the length of an object and then samples n components
1010
#' of that length. But length(data.frame) in native R returns the number of columns
1111
#' not the number of rows. So if you have a data.frame with 71 rows and 10 columns,
@@ -63,11 +63,11 @@
6363
#' that is a randomly permuted sample of the vector 1:923, or (if [replace]
6464
#' = FALSE, a full random permutation of that same vector. For further details
6565
#' of using ds.sample with x set as an integer/numeric please see help for
66-
#' the {sample} function in native R. But if x is set as a character string
66+
#' the \code{sample} function in native R. But if x is set as a character string
6767
#' denoting a vector, matrix or data.frame on the serverside, please note
68-
#' that although {ds.sample} effectively calls {sample} on the serverside
69-
#' it behaves somewhat differently to {sample} - for the reasons identified
70-
#' at the top of 'details' and so help for {sample} should be used as a guide
68+
#' that although \code{ds.sample} effectively calls \code{sample} on the serverside
69+
#' it behaves somewhat differently to \code{sample} - for the reasons identified
70+
#' at the top of 'details' and so help for \code{sample} should be used as a guide
7171
#' only.
7272
#' @param size a numeric/integer scalar indicating the size of the sample to
7373
#' be drawn. If the [x] argument is a vector, matrix or data.frame on the
@@ -102,18 +102,18 @@
102102
#' @param replace a Boolean indicator (TRUE or FALSE) specifying whether the
103103
#' sample should be drawn with or without replacement. Default is FALSE so
104104
#' the sample is drawn without replacement. For further details see
105-
#' help for {sample} in native R.
105+
#' help for \code{sample} in native R.
106106
#' @param prob a character string containing the name of a numeric vector
107107
#' of probability weights on the serverside that is associated with each of the
108108
#' elements of the vector to be sampled enabling the drawing of a sample
109109
#' with some elements given higher probability of being drawn than others.
110-
#' For further details see help for {sample} in native R.
110+
#' For further details see help for \code{sample} in native R.
111111
#' @param newobj This a character string providing a name for the output
112112
#' data.frame which defaults to 'newobj.sample' if no name is specified.
113113
#' @param datasources specifies the particular opal object(s) to use. If the <datasources>
114114
#' argument is not specified the default set of opals will be used. The default opals
115115
#' are called default.opals and the default can be set using the function
116-
#' {ds.setDefaultOpals}. If the <datasources> is to be specified, it should be set without
116+
#' \code{ds.setDefaultOpals}. If the <datasources> is to be specified, it should be set without
117117
#' inverted commas: e.g. datasources=opals.em or datasources=default.opals. If you wish to
118118
#' apply the function solely to e.g. the second opal server in a set of three,
119119
#' the argument can be specified as: e.g. datasources=opals.em[2].

R/ds.table.R

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#' table returned to the clientside, it means that the true count
3737
#' in that same cell is held as the 13th element of the true count
3838
#' vector saved on the serverside. This means that a data analyst
39-
#' can still make use of the counts from a call to the {ds.table}
39+
#' can still make use of the counts from a call to the \code{ds.table}
4040
#' function to drive their ongoing analysis even when one or
4141
#' more non-zero cell counts fall below the specified threshold
4242
#' for potential disclosure risk.
@@ -55,7 +55,7 @@
5555
#'
5656
#' In creating a 3-dimensional table the
5757
#' <stvar> ('separate tables') argument identifies the variable that
58-
#' indexes the set of two dimensional tables in the output {ds.table}.
58+
#' indexes the set of two dimensional tables in the output \code{ds.table}.
5959
#'
6060
#' As a minor technicality, it should be noted that
6161
#' if a 1-dimensional table is required, one only need specify a value
@@ -67,7 +67,7 @@
6767
#' for one dimensional tables are actually two dimensional: with
6868
#' rows defined by <rvar> and with one column for each of the studies.
6969
#'
70-
#' The output list generated by {ds.table} contains tables based on counts
70+
#' The output list generated by \code{ds.table} contains tables based on counts
7171
#' named "table.name_counts" and other tables reporting corresponding
7272
#' column proportions ("table.name_col.props") or row proportions
7373
#' ("table.name_row.props"). In one dimensional tables in the output the
@@ -102,14 +102,14 @@
102102
#' @param report.chisq.tests if TRUE, chi-squared tests
103103
#' are applied to every 2 dimensional table in the output and reported
104104
#' as "chisq.test_table.name". Default = FALSE.
105-
#' @param exclude this argument is passed through to the {table} function in
106-
#' native R which is called by {tableDS}. The help for {table} in native R
105+
#' @param exclude this argument is passed through to the \code{table} function in
106+
#' native R which is called by \code{tableDS}. The help for \code{table} in native R
107107
#' indicates that 'exclude' specifies any levels that should be deleted for
108108
#' all factors in rvar, cvar or stvar. If the <exclude> argument
109109
#' does not include NA and if the <useNA> argument is not specified,
110-
#' it implies <useNA> = "always" in DataSHIELD. If you read the help for {table} in native R
110+
#' it implies <useNA> = "always" in DataSHIELD. If you read the help for \code{table} in native R
111111
#' including the 'details' and the 'examples' (particularly 'd.patho') you
112-
#' will see that the response of {table} to different combinations of the
112+
#' will see that the response of \code{table} to different combinations of the
113113
#' <exclude> and <useNA> arguments can be non-intuitive. This is particularly
114114
#' so if there is more than one type of missing (e.g. missing by observation
115115
#' as well as missing because of an NaN response to a mathematical
@@ -118,24 +118,24 @@
118118
#' you cannot interpret the output that has been approached
119119
#' you might try: (1) making sure that the variable producing the strange results
120120
#' is of class factor rather than integer or numeric - although integers and
121-
#' numerics are coerced to factors by {ds.table} they can occasionally behave less
121+
#' numerics are coerced to factors by \code{ds.table} they can occasionally behave less
122122
#' well when the NA setting is complex; (2) specify both an <exclude> argument
123123
#' e.g. exclude = c("NaN","3") and a <useNA> argument e.g. useNA= "no";
124124
#' (3) if you are excluding multiple levels e.g exclude = c("NA","3")
125125
#' then you can reduce this to one e.g. exclude = c("NA") and then remove
126126
#' the 3s by deleting rows of data, or converting the 3s to a different value.
127-
#' @param useNA this argument is passed through to the {table} function in
128-
#' native R which is called by {tableDS}. In DataSHIELD, this argument can take
127+
#' @param useNA this argument is passed through to the \code{table} function in
128+
#' native R which is called by \code{tableDS}. In DataSHIELD, this argument can take
129129
#' two values: "no" or "always" which indicate whether to include NA values in the table.
130130
#' For further information, please see the help for the <exclude> argument (above)
131-
#' and/or the help for the {table} function in native R. Default value is set to "always".
131+
#' and/or the help for the \code{table} function in native R. Default value is set to "always".
132132
#' @param suppress.chisq.warnings if set to TRUE, the default warnings are
133-
#' suppressed that would otherwise be produced by the {table} function in
133+
#' suppressed that would otherwise be produced by the \code{table} function in
134134
#' native R whenever an expected cell count in one or more cells is less than 5.
135135
#' Default is FALSE. Further details can be found under 'details' and the
136136
#' help provided for the <report.chisq.tests> argument (above).
137137
#' @param table.assign is a Boolean argument set by default to FALSE. If it is
138-
#' FALSE the {ds.table} function acts as a standard aggregate function -
138+
#' FALSE the \code{ds.table} function acts as a standard aggregate function -
139139
#' it returns the table that is specified in its call to the clientside
140140
#' where it can be visualised and worked with by the analyst. But if
141141
#' <table.assign> is TRUE, the same table object is also written to
@@ -161,7 +161,7 @@
161161
#' a positive integer represented as a character string: e.g. "173". This
162162
#' the has the effect of the standard value of 'nfilter.tab' (often 1, 3, 5 or 10
163163
#' depending what value the data custodian has selected for this particular
164-
#' data set), to this new value (here, 173). CRUCIALLY, the {ds.table} function
164+
#' data set), to this new value (here, 173). CRUCIALLY, the \code{ds.table} function
165165
#' only allows the standard value to be INCREASED. So if the standard value has
166166
#' been set as 5 (as one of the R options set in the serverside connection), "6" and
167167
#' "4981" would be allowable values for the <force.nfilter> argument but "4" or
@@ -174,9 +174,9 @@
174174
#' there is an error for some other reason).
175175
#'
176176
#' The clientside output from
177-
#' {ds.table} includes error messages that identify when the creation of a
177+
#' \code{ds.table} includes error messages that identify when the creation of a
178178
#' table from a particular study has failed and why. If table.assign=TRUE,
179-
#' {ds.table} also writes the requested table as an object named by
179+
#' \code{ds.table} also writes the requested table as an object named by
180180
#' the <newobj> argument or set to 'newObj' by default.
181181
#'
182182
#' Further information

0 commit comments

Comments
 (0)