Skip to content

Commit 2791cea

Browse files
committed
Fixed {XX} in code, update manual and documentation
1 parent b58d3c0 commit 2791cea

152 files changed

Lines changed: 379 additions & 387 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.

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

docs/404.html

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

docs/LICENSE.html

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

0 commit comments

Comments
 (0)