diff --git a/DESCRIPTION b/DESCRIPTION index 0e261ce4..2c308768 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -59,12 +59,15 @@ Authors@R: c(person(given = "Paul", comment = c(ORCID = "0009-0003-2419-1964"))) License: GPL-3 Depends: - R (>= 4.0.0) + R (>= 4.1.0) Imports: RANN, stringr, lme4, dplyr, + tibble, + purrr, + tidyselect, reshape2, polycor (>= 0.8), splines, @@ -76,11 +79,11 @@ Imports: tibble, tidyselect, stats, - lubridate, - tidytable + lubridate Suggests: spelling, - testthat, + testthat (>= 3.0.0), + tidytable RoxygenNote: 8.0.0 Encoding: UTF-8 Language: en-GB diff --git a/README.md b/README.md index bf9c1ada..ae2a36d5 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ And the development version from install.packages("remotes") remotes::install_github("datashield/dsBase", "") -# Install v6.3.4 with the following -remotes::install_github("datashield/dsBase", "6.3.4") +# Install v6.4.0 with the following +remotes::install_github("datashield/dsBase", "6.4.0") ``` For a full list of development branches, checkout https://github.com/datashield/dsBase/branches diff --git a/docs/index.html b/docs/index.html index 1d86586f..34fba0b5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -70,10 +70,10 @@

InstallationGitHub with:

 install.packages("remotes")
-remotes::install_github("datashield/dsBase", "<BRANCH>")
+remotes::install_github("datashield/dsBase", "<BRANCH>")
 
 # Install v6.3.4 with the following
-remotes::install_github("datashield/dsBase", "6.3.4")
+remotes::install_github("datashield/dsBase", "6.3.4")

For a full list of development branches, checkout https://github.com/datashield/dsBase/branches

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 9cfbee88..a3463688 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,4 +2,4 @@ pandoc: 3.1.3 pkgdown: 2.2.0 pkgdown_sha: ~ articles: {} -last_built: 2026-02-20T10:54Z +last_built: 2026-06-16T13:21Z diff --git a/docs/reference/asDataMatrixDS.html b/docs/reference/asDataMatrixDS.html index eae50c28..dcedd916 100644 --- a/docs/reference/asDataMatrixDS.html +++ b/docs/reference/asDataMatrixDS.html @@ -1,6 +1,5 @@ -< -head>asDataFrameDS a serverside assign function called by ds.asDataFrame — asDataMatrixDS • dsBaseasDataFrameDS a serverside assign function called by ds.asDataFrame — asDataMatrixDS • dsBasecheckPermissivePrivacyControlLevel — checkPermissivePrivacyControlLevel • dsBasecheckPermissivePrivacyControlLevel — checkPermissivePrivacyControlLevel • dsBase @@ -17,7 +17,7 @@ dsBase - 6.4.0-9000 + 6.4.0.9000
diff --git a/docs/reference/dateDS.html b/docs/reference/dateDS.html new file mode 100644 index 00000000..78f75753 --- /dev/null +++ b/docs/reference/dateDS.html @@ -0,0 +1,120 @@ + +dateDS — dateDS • dsBase + + +
+
+ + + +
+
+ + +
+

Takes an object that is either a data-frame column or a vector, and can do extraction of +components of full date (extractdate), can combine date components to a full date (makedate), +or can calculate the time between two dates (timebetween).

+
+ +
+
dateDS(x = NULL, type = NULL, newobj = NULL, unit = NULL, add.column = NULL)
+
+ +
+

Arguments

+ + +
x
+

Character vector specifying the server-side object(s). For data-frame columns, use the format df$column.

+ + +
type
+

Character string specifying the operation: "extractdate", "makedate", or "timebetween".

+ + +
newobj
+

Character string for the name of the object that will be created on the server. Default is "date.result".

+ + +
unit
+

Character string specifying the unit for extractdate or timebetween: "days", "months", or "years".

+ + +
add.column
+

Logical. If FALSE, the result is created as a new server-side object; +if TRUE, the result is added as a new column in the existing data-frame. Default is FALSE.

+ +
+
+

Value

+

the created numeric vector or date object, or the updated dataframe with the added column

+
+
+

Details

+

If the input is a data-frame column, it must be provided in the x argument as data-frame$column. +Inputs for extractdate and timebetween must be date objects. +For makedate, three numeric vectors (year, month, day) must be provided in the correct order. +The add.column argument determines whether the result is added as a new column in the existing +data-frame (TRUE), or created as a new server-side object (FALSE). +Note: add.column = TRUE is only valid for data-frame inputs.

+
+
+

Author

+

Zulal Bekerecioglu

+
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.2.0.

+
+ +
+ + + + + + + + diff --git a/docs/reference/dsBase-package.html b/docs/reference/dsBase-package.html new file mode 100644 index 00000000..e17af507 --- /dev/null +++ b/docs/reference/dsBase-package.html @@ -0,0 +1,88 @@ + +dsBase: 'DataSHIELD' Server Side Base Functions — dsBase-package • dsBase + + +
+
+ + + +
+
+ + +
+

Base 'DataSHIELD' functions for the server side. 'DataSHIELD' is a software package which allows you to do non-disclosive federated analysis on sensitive data. 'DataSHIELD' analytic functions have been designed to only share non disclosive summary statistics, with built in automated output checking based on statistical disclosure control. With data sites setting the threshold values for the automated output checks. For more details, see 'citation("dsBase")'.

+
+ + +
+

Author

+

Maintainer: Stuart Wheater stuart.wheater@arjuna.com (ORCID)

+

Authors:

+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.2.0.

+
+ +
+ + + + + + + + diff --git a/docs/reference/glmDS1.html b/docs/reference/glmDS1.html index fc6eaad7..e105c614 100644 --- a/docs/reference/glmDS1.html +++ b/docs/reference/glmDS1.html @@ -1,5 +1,5 @@ -glmDS1 called by ds.glm — glmDS1 • dsBaseglmDS1 called by ds.glm — glmDS1 • dsBase @@ -17,7 +17,7 @@ dsBase - 6.4.0-9000 + 6.4.0.9000 diff --git a/docs/reference/glmDS2.html b/docs/reference/glmDS2.html index 8ebfd011..3d71a1b2 100644 --- a/docs/reference/glmDS2.html +++ b/docs/reference/glmDS2.html @@ -1,5 +1,5 @@ -glmDS2 called by ds.glm — glmDS2 • dsBaseglmDS2 called by ds.glm — glmDS2 • dsBase @@ -17,7 +17,7 @@ dsBase - 6.4.0-9000 + 6.4.0.9000 diff --git a/docs/reference/index.html b/docs/reference/index.html index efa3d316..720ca309 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -185,6 +185,10 @@

All functions dataFrameSubsetDS2()

dataFrameSubsetDS2 an assign function called by ds.dataFrameSubset

+ +

dateDS()

+ +

dateDS

densityGridDS()

@@ -437,6 +441,10 @@

All functions numNaDS()

Counts the number of missing values

+ +

predictDS()

+ +

predictDS

qlsplineDS()

@@ -513,6 +521,10 @@

All functions rmDS()

rmDS an aggregate function called by ds.rm

+ +

roundDS()

+ +

roundDS

rowColCalcDS()

@@ -521,6 +533,10 @@

All functions sampleDS()

random sampling and permuting of vectors, dataframes and matrices

+ +

scaleDS()

+ +

scaleDS

scatterPlotDS()

diff --git a/docs/reference/lexisDS1.html b/docs/reference/lexisDS1.html index 7117f909..ee21e0ee 100644 --- a/docs/reference/lexisDS1.html +++ b/docs/reference/lexisDS1.html @@ -1,5 +1,5 @@ -lexisDS1 — lexisDS1 • dsBaselexisDS1 — lexisDS1 • dsBase @@ -17,7 +17,7 @@ dsBase - 6.4.0-9000 + 6.4.0.9000 diff --git a/docs/reference/meanSdGpDS.html b/docs/reference/meanSdGpDS.html index 9fa9ee0e..b2a892c7 100644 --- a/docs/reference/meanSdGpDS.html +++ b/docs/reference/meanSdGpDS.html @@ -1,5 +1,5 @@ -MeanSdGpDS — meanSdGpDS • dsBaseMeanSdGpDS — meanSdGpDS • dsBase @@ -17,7 +17,7 @@ dsBase - 6.4.0-9000 + 6.4.0.9000 diff --git a/docs/reference/predictDS.html b/docs/reference/predictDS.html new file mode 100644 index 00000000..9e70992f --- /dev/null +++ b/docs/reference/predictDS.html @@ -0,0 +1,118 @@ + +predictDS — predictDS • dsBase + + +
+
+ + + +
+
+ + +
+

Generates server-side predictions using the client-side output from ds.glm.

+
+ +
+
predictDS(
+  newdataname,
+  traindataname,
+  type = c("response", "link"),
+  na.action = "na.pass"
+)
+
+ +
+

Arguments

+ + +
newdataname
+

A character string specifying the name of the new dataset to be used for predictions.

+ + +
traindataname
+

A character string specifying the name of the dataset used for model training.

+ + +
type
+

A character string specifying the type of prediction. Options are "response" or "link".

+ + +
na.action
+

A character string to specify the action to take if missing values are present. Default is "na.pass".

+ +
+
+

Value

+

a numeric vector containing the predicted values

+
+
+

Details

+

This function uses the components supplied by the client-side function (coefficients, family, formula, +and any categorical variables) to generate predictions on the server. To use the base R predict() function, +a "dummy" glm object is created using the same model formula, family, and link function as the original model. +The dummy model's coefficients are then replaced with the client-side coefficient estimates.

+

To avoid mismatches between the factors used in the original glm and those in the dummy glm, the categorical +variables saved by the client-side function are applied to the newdata.

+

For intercept-only models, the function simply returns a vector of predicted values equal to the model intercept, with the appropriate length +based on the row length of newdataname.

+
+
+

Author

+

Zulal Bekerecioglu

+
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.2.0.

+
+ +
+ + + + + + + + diff --git a/docs/reference/roundDS.html b/docs/reference/roundDS.html new file mode 100644 index 00000000..5a1730ac --- /dev/null +++ b/docs/reference/roundDS.html @@ -0,0 +1,126 @@ + +roundDS — roundDS • dsBase + + +
+
+ + + +
+
+ + +
+

Generates objects from a server-side object, which can be either a vector or +a data-frame column. Supports five operations: +1. (round) +2. (ceiling) +3. (floor) +4. (trunc) +5. (signif) +where each function in baseR is applied on the server side to the specified object.

+
+ +
+
roundDS(x, type, digits, add.column, newobj)
+
+ +
+

Arguments

+ + +
x
+

Character vector specifying the server-side object(s). For data-frame columns, use the format df$column.

+ + +
type
+

Character string specifying the operation: "round", "ceiling", "floor", +trunc, or "signif".

+ + +
digits
+

Number of digits to be used in arguments "round" and "signif".

+ + +
add.column
+

Logical. If FALSE, the result is created as a new server-side object; +if TRUE, the result is added as a new column in the existing data-frame. Default is FALSE.

+ + +
newobj
+

Character string for the name of the object that will be created on the server. Default is "rounding.result".

+ +
+
+

Value

+

the created numeric vector or the updated dataframe with the added column

+
+
+

Details

+

Note: add.column = TRUE is only valid for data-frame inputs.

+
+
+

Author

+

Zulal Bekerecioglu

+
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.2.0.

+
+ +
+ + + + + + + + diff --git a/docs/reference/scaleDS.html b/docs/reference/scaleDS.html new file mode 100644 index 00000000..3ba2392f --- /dev/null +++ b/docs/reference/scaleDS.html @@ -0,0 +1,105 @@ + +scaleDS — scaleDS • dsBase + + +
+
+ + + +
+
+ + +
+

Generates scaled objects using a server-side object, which can be either a vector or +a data-frame column.

+
+ +
+
scaleDS(x = NULL, newobj = NULL, add.column = NULL)
+
+ +
+

Arguments

+ + +
x
+

Character string specifying the server-side vector For data-frame columns, use the format df$column.

+ + +
newobj
+

Character string for the name of the object that will be created on the server. Default is "scaled.data".

+ + +
add.column
+

Logical. If FALSE, the result is created as a new server-side object; +if TRUE, the result is added as a new column in the existing data-frame. Default is FALSE.

+ +
+
+

Value

+

the created numeric vector or the updated dataframe with the added column

+
+
+

Details

+

Note: add.column = TRUE is only valid for data-frame inputs.

+
+
+

Author

+

Zulal Bekerecioglu

+
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.2.0.

+
+ +
+ + + + + + + + diff --git a/docs/reference/testObjExistsDS.html b/docs/reference/testObjExistsDS.html index ed693254..c006a722 100644 --- a/docs/reference/testObjExistsDS.html +++ b/docs/reference/testObjExistsDS.html @@ -1,5 +1,5 @@ -testObjExistsDS — testObjExistsDS • dsBasetestObjExistsDS — testObjExistsDS • dsBase @@ -17,7 +17,7 @@ dsBase - 6.4.0-9000 + 6.4.0.9000 diff --git a/docs/sitemap.xml b/docs/sitemap.xml index a38f2f20..8f4e88ad 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -39,6 +39,7 @@ /reference/dataFrameSortDS.html /reference/dataFrameSubsetDS1.html /reference/dataFrameSubsetDS2.html +/reference/dateDS.html /reference/densityGridDS.html /reference/dimDS.html /reference/dmtC2SDS.html @@ -106,6 +107,7 @@ /reference/namesDS.html /reference/nsDS.html /reference/numNaDS.html +/reference/predictDS.html /reference/qlsplineDS.html /reference/quantileMeanDS.html /reference/rBinomDS.html @@ -125,8 +127,10 @@ /reference/repDS.html /reference/replaceNaDS.html /reference/rmDS.html +/reference/roundDS.html /reference/rowColCalcDS.html /reference/sampleDS.html +/reference/scaleDS.html /reference/scatterPlotDS.html /reference/seqDS.html /reference/setFilterDS.html