Skip to content

Update 'v6.4.0-dev-feat/standardise-df' branch with v6.3.3 changes #596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 160 commits into
base: origin/v6.4.0-dev-feat/standardise-df
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
e472e5a
Set options datashield.return_errors to FALSE
StuartWheater Oct 14, 2024
1f5edc0
Merge pull request #546 from StuartWheater/v6.3.1-RC4-dev
StuartWheater Oct 14, 2024
07b1962
Switch to Opal 5.0 final
StuartWheater Oct 15, 2024
4c2ad5c
Merge pull request #547 from StuartWheater/v6.3.1-RC4-dev
StuartWheater Oct 15, 2024
0d4e7f1
Switch back to 'opal azure-pipeline'
StuartWheater Oct 17, 2024
abbe284
Merge branch 'datashield:v6.3.1-RC4-dev' into v6.3.1-RC4-dev
StuartWheater Oct 17, 2024
3f8e95a
Merge pull request #548 from StuartWheater/v6.3.1-RC4-dev
StuartWheater Oct 17, 2024
b1fcfca
Updated to 'Armadillo 4.11.0'
StuartWheater Oct 21, 2024
5c27fed
Merge branch 'v6.3.1-RC4-dev' of github.com:StuartWheater/dsBaseClien…
StuartWheater Oct 21, 2024
520e833
Updated to Armadillo 4.11.1
StuartWheater Oct 24, 2024
6289fee
Update package deployment
StuartWheater Nov 1, 2024
432d5b1
Merge pull request #549 from StuartWheater/v6.3.1-RC4-dev
StuartWheater Nov 3, 2024
eff2f20
Align with other 'azure-pipelines' files
StuartWheater Nov 6, 2024
0b09873
Switch to 'DSLiteDriver' as default Driver
StuartWheater Nov 7, 2024
0c2e4ce
Updated dsBase tat.gz#
StuartWheater Nov 10, 2024
b098b89
Merge branch 'datashield:v6.3.1-RC5-dev' into v6.3.1-RC5-dev
StuartWheater Nov 11, 2024
228a03a
Update DESCRIPTION, R and DSI versions
StuartWheater Nov 11, 2024
5a69a43
Initial CircleCI
StuartWheater Nov 11, 2024
cbe5e79
Switched to R 4.0.0, due to CircleCI
StuartWheater Nov 11, 2024
3d13ac5
Rework docs source
StuartWheater Nov 11, 2024
a1d5f6b
Regenerate 'docs'
StuartWheater Nov 11, 2024
214b119
Initial attempts
StuartWheater Nov 11, 2024
37f2d9a
Added '\' before '$'
StuartWheater Nov 11, 2024
3a182db
Added '\' to '$'
StuartWheater Nov 11, 2024
8f2b572
Merge pull request #552 from StuartWheater/v6.3.1-RC5-dev
StuartWheater Nov 11, 2024
7954e72
Update docker-compose_opal.yml to use Opal 5.0.1
StuartWheater Nov 11, 2024
d8ee97b
Added system libraris
StuartWheater Nov 11, 2024
4f0e40a
More added system libraris
StuartWheater Nov 11, 2024
45956de
More added system libraris
StuartWheater Nov 12, 2024
f8fd8b0
Update codecov logging ro enabled
StuartWheater Nov 12, 2024
ba80f38
Merge pull request #553 from StuartWheater/v6.3.1-RC5-dev
StuartWheater Nov 12, 2024
4842ab9
Merge pull request #554 from StuartWheater/v6.3.1-RC5-dev
StuartWheater Nov 12, 2024
c071a6b
Merge pull request #555 from datashield/v6.3.1-RC5-dev
StuartWheater Nov 12, 2024
6e61d15
Merge pull request #556 from datashield/v6.3.1-dev
StuartWheater Nov 12, 2024
d606a6e
Extender libraries
StuartWheater Nov 15, 2024
021c738
Update version 6.3.2-dev
StuartWheater Nov 15, 2024
89f7f07
Merge pull request #559 from StuartWheater/v6.3.2-dev
StuartWheater Nov 15, 2024
a9990fa
Upgrade docker to 'cimg/base:2024.11'
StuartWheater Nov 15, 2024
7fc4f5a
Upgrade docker to 'ubuntu-2404:edge'
StuartWheater Nov 15, 2024
68ff45c
Upgrade docker to 'ubuntu:2404'
StuartWheater Nov 15, 2024
6cf57af
Upgrade docker to 'cimg/base:2024.11'
StuartWheater Nov 15, 2024
22f3731
Switch to 'rock-knot-devel-permissive'
StuartWheater Nov 18, 2024
3a630dc
Added 'ubuntu-noble-cran40' repo
StuartWheater Nov 18, 2024
a9a4da3
Reworked 'ubuntu-noble-cran40' repo
StuartWheater Nov 18, 2024
fbc13fa
Reworked adding 'ubuntu-noble-cran40' repo
StuartWheater Nov 18, 2024
9387af0
Adding 'testthat.R'
StuartWheater Nov 18, 2024
ee44252
Added '--no-tests' to 'devtools::check(...)'
StuartWheater Nov 18, 2024
1b96e46
Updated pref profile
StuartWheater Nov 19, 2024
643023b
Switched from 'knot-devel' to 'lemon-donkey'
StuartWheater Nov 19, 2024
526a9fa
Switched from 'knot-devel' to 'lemon-donkey'
StuartWheater Nov 19, 2024
947b21c
Switched back to 'DSLiteDriver'
StuartWheater Nov 19, 2024
5e9a2ee
Switch default to armadillo
StuartWheater Nov 19, 2024
36269e2
Fixed perf profiles
StuartWheater Nov 20, 2024
41dd193
New perf profiles
StuartWheater Nov 20, 2024
00856ff
Updated 'application.yml' for 'lemon-donkey'
StuartWheater Nov 21, 2024
c858cf4
Merge branch 'datashield:v6.3.2-dev' into v6.3.2-dev
StuartWheater Nov 26, 2024
2c046e6
Merge pull request #560 from StuartWheater/v6.3.2-dev
StuartWheater Nov 26, 2024
3fe945d
Updated 'Suggests'
StuartWheater Nov 26, 2024
41bd62e
Further updated 'Suggests'
StuartWheater Nov 26, 2024
f747042
Switch to armadillo performance testing
StuartWheater Dec 9, 2024
71d53ea
Added packages to surpress devtools::check warnings
StuartWheater Dec 9, 2024
aa19953
Upgrade to Opal 5.0.3
StuartWheater Dec 9, 2024
eaff016
Switch to Opal
StuartWheater Dec 9, 2024
16c7664
Switch from '::check' to '::reload'
StuartWheater Dec 9, 2024
b3799be
Merge pull request #561 from StuartWheater/v6.3.2-dev
StuartWheater Dec 17, 2024
45d947a
Added 'perf_rate.R'
StuartWheater Jan 9, 2025
d027d52
Switch to datashield/rock-margin-donkey-permissive:draft
StuartWheater Jan 22, 2025
4ad2a49
Switch to Armadillo profile
StuartWheater Jan 22, 2025
4474062
Merge pull request #564 from StuartWheater/v6.3.2-dev
StuartWheater Jan 22, 2025
5de6aff
Update to use opal 5.1.0
StuartWheater Feb 5, 2025
086cab9
Switched to Opal 5.1.1
StuartWheater Feb 6, 2025
569421e
Switch 'perf' to opal azure
StuartWheater Feb 6, 2025
4d89a36
Merge pull request #569 from StuartWheater/v6.3.2-dev
StuartWheater Feb 7, 2025
3a965ea
Armadillo 4.12.0
StuartWheater Feb 17, 2025
541b4e3
Update docker-compose_armadillo.yml
StuartWheater Feb 18, 2025
8c78b3d
Switch to 'rock-margin-hammer-permissive:latest'
StuartWheater Feb 18, 2025
653cb22
Update docker-compose_armadillo.yml
StuartWheater Feb 18, 2025
ae78c1a
Updated to Armadillo 4.13.1
StuartWheater Feb 20, 2025
d06ccbf
Updated to Armadillo 4.13.1
StuartWheater Feb 20, 2025
9e9ea0a
Switch to 'docker-compose_opal.yml'
StuartWheater Feb 24, 2025
c69e60e
Update docker-compose_opal.yml
StuartWheater Feb 24, 2025
57b40dc
Switch to Armadillo
StuartWheater Feb 25, 2025
0edf7a9
Merge branch 'v6.3.2-dev' of github.com:StuartWheater/dsBaseClient in…
StuartWheater Feb 25, 2025
20a384a
Fixed 'application.yml'
StuartWheater Feb 26, 2025
606853a
Switch back to Opal
StuartWheater Mar 4, 2025
3960bb2
Update docker-compose_opal.yml
StuartWheater Mar 5, 2025
9d425f4
Replaced 'deqn' with 'eqn'
StuartWheater Mar 10, 2025
5553044
Regenerate 'build_site' documents
StuartWheater Mar 10, 2025
8282242
fix: re-seed only when specified
ESCRI11 Mar 10, 2025
f086f26
Merge pull request #571 from StuartWheater/v6.3.2-dev
StuartWheater Mar 10, 2025
64886bc
Update pipeline, explicit install of 'curl' and 'httr' packages
StuartWheater Mar 11, 2025
8cd47ae
Merge branch 'datashield:v6.3.2-dev' into v6.3.2-dev
StuartWheater Mar 11, 2025
af00f13
Merge pull request #573 from StuartWheater/v6.3.2-dev
StuartWheater Mar 11, 2025
d3c08cd
Merge pull request #572 from ESCRI11/fix-seed
StuartWheater Mar 11, 2025
d0d72a4
Update of 'Authors@R'
StuartWheater Apr 23, 2025
df396fe
Merge branch 'v6.3.2-dev' of github.com:StuartWheater/dsBaseClient in…
StuartWheater Apr 23, 2025
5574e1d
Update to Armadillo 5.0.0, and switch perf profile
StuartWheater Apr 28, 2025
fb670a4
Merge pull request #574 from StuartWheater/v6.3.2-dev
StuartWheater May 2, 2025
7d814db
Updated version of Opal to 5.1.3
StuartWheater May 16, 2025
f5b5c91
Merge branch 'v6.3.2-dev' of github.com:StuartWheater/dsBaseClient in…
StuartWheater May 16, 2025
15fe7a3
Updates for RC1
StuartWheater May 21, 2025
5d9a07a
Updated for release
StuartWheater May 21, 2025
3c2e11b
Updated documentation
StuartWheater May 21, 2025
8b1944f
Merge pull request #576 from StuartWheater/v6.3.2-dev
StuartWheater May 21, 2025
37d125d
Update documentation
StuartWheater Jun 2, 2025
bb4f9a3
Switch to 'margin-joule-permissive'
StuartWheater Jun 2, 2025
79f1a16
Update aux files
StuartWheater Jun 2, 2025
b8209e3
Merge pull request #577 from StuartWheater/v6.3.2-dev
StuartWheater Jun 2, 2025
3ea60e7
Update docker-compose_opal.yml
StuartWheater Jun 8, 2025
32c3521
Update opal_azure-pipelines.yml
StuartWheater Jun 8, 2025
6a55f06
\link{} issue
StuartWheater Jun 9, 2025
2299294
Link issues
StuartWheater Jun 10, 2025
6c3799e
Link issues
StuartWheater Jun 10, 2025
f1d0686
Link issues
StuartWheater Jun 10, 2025
6d66ea5
Remove 'save' file
StuartWheater Jun 10, 2025
23a520c
Update DESCRIPTION with Yannick's info
StuartWheater Jun 10, 2025
ad44726
Merge pull request #56 from StuartWheater/v6.3.2-dev
StuartWheater Jun 10, 2025
07e32d9
Merge branch 'v6.3.2-test' into v6.3.2-test
StuartWheater Jun 10, 2025
0dad5c5
Merge pull request #578 from StuartWheater/v6.3.2-test
StuartWheater Jun 10, 2025
e7ade54
Merge pull request #579 from StuartWheater/v6.3.2-dev
StuartWheater Jun 10, 2025
706d17b
Merge pull request #580 from datashield/v6.3.2-test
StuartWheater Jun 10, 2025
bc8e1d7
Updated to Armadillo
StuartWheater Jun 10, 2025
186a036
Single maintainer!
StuartWheater Jun 10, 2025
b0caba2
Update documentation
StuartWheater Jun 10, 2025
a86d776
Merge branch 'datashield:v6.3.2-dev' into v6.3.2-dev
StuartWheater Jun 10, 2025
4d9c5ed
Merge pull request #581 from StuartWheater/v6.3.2-dev
StuartWheater Jun 10, 2025
92bd8ec
Removed test needing update
StuartWheater Jun 10, 2025
3d6a7c0
Fixed created variables
StuartWheater Jun 11, 2025
71aa93a
Revert back
StuartWheater Jun 11, 2025
ea31f8e
Merge pull request #57 from StuartWheater/v6.3.2-test
StuartWheater Jun 11, 2025
506f07e
Update test-arg-ds.lmerSLMA.R, variable checking
StuartWheater Jun 11, 2025
03968f1
Merge pull request #583 from StuartWheater/v6.3.2-dev
StuartWheater Jun 11, 2025
56847e7
Release of 6.3.2
StuartWheater Jun 12, 2025
6683ac9
Merge pull request #585 from datashield/master
StuartWheater Jun 12, 2025
570b9c4
Merge pull request #586 from datashield/v6.3.3-dev
StuartWheater Jun 12, 2025
98473ad
Update version
StuartWheater Jun 19, 2025
1134632
Merge branch 'datashield:v6.3.3-dev' into v6.3.3-dev
StuartWheater Jun 23, 2025
d204aaf
Update packages
StuartWheater Jun 23, 2025
d43b1c5
Update Packages
StuartWheater Jun 24, 2025
d7382a5
fix: port panelaggragation fct
ESCRI11 Jun 26, 2025
ef0ffa0
Merge pull request #590 from ESCRI11/v6.3.3.-dev-panelaggregration
StuartWheater Jun 27, 2025
0734222
Merge branch 'datashield:v6.3.3-dev' into v6.3.3-dev
StuartWheater Jun 27, 2025
8ccba03
Merge pull request #591 from StuartWheater/v6.3.3-dev
StuartWheater Jun 27, 2025
ae7e650
Further changes due to 'panelaggregation'
StuartWheater Jun 27, 2025
095ef5d
Merge branch 'datashield:v6.3.3-dev' into v6.3.3-dev
StuartWheater Jun 27, 2025
f3e56b5
Merge pull request #592 from StuartWheater/v6.3.3-dev
StuartWheater Jun 27, 2025
194324d
Revert to previous code
StuartWheater Jun 29, 2025
b1ebef1
Merge pull request #593 from StuartWheater/v6.3.3-dev
StuartWheater Jun 29, 2025
ed1c12c
Fixed 'combined' -> 'pooled'
StuartWheater Jun 29, 2025
df81de2
Merge pull request #594 from StuartWheater/v6.3.3-dev
StuartWheater Jun 29, 2025
aa62e35
Updated documents
StuartWheater Jun 30, 2025
e95d85a
Switch to production format version
StuartWheater Jun 30, 2025
3a205b3
Merge branch 'v6.3.3-dev' of github.com:StuartWheater/dsBaseClient in…
StuartWheater Jun 30, 2025
ffe1ade
Merge pull request #595 from StuartWheater/v6.3.3-dev
StuartWheater Jun 30, 2025
7aca351
Update description
StuartWheater Jul 1, 2025
0983ca6
Update Description
StuartWheater Jul 1, 2025
9304787
Merge branch 'v6.3.3-dev' into v6.3.3-dev
StuartWheater Jul 1, 2025
3181c23
Merge pull request #598 from StuartWheater/v6.3.3-dev
StuartWheater Jul 1, 2025
c1f6189
Update documentation
StuartWheater Jul 1, 2025
7ca1a97
Merge pull request #599 from StuartWheater/v6.3.3-dev
StuartWheater Jul 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
^R/secure.global.ranking.md$
^_pkgdown\.yml$
^docs$
^dsBase_6.3.1.tar.gz$
^dsBase_6.3.1-permissive.tar.gz$
^dsBase_6.3.2.tar.gz$
^dsBase_6.3.2-permissive.tar.gz$
^dsDanger_6.3.1.tar.gz$
^\.circleci$
^\.circleci/config\.yml$
67 changes: 67 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright (c) 2024 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.

version: 2.1

jobs:
dsbaseclient:
docker:
# - image: cimg/base:current
- image: cimg/base:2024.11
resource_class: small
steps:
- checkout
- setup_remote_docker:
docker_layout_caching: true
- run: |
echo "Building"
echo " Repo Name: " $CIRCLE_PROJECT_REPONAME
echo " Branch: " $CIRCLE_BRANCH
echo " Tag: " $CIRCLE_TAG
- run:
command: |
sudo apt-get install --no-install-recommends software-properties-common dirmngr
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
sudo add-apt-repository -y "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"

sudo apt-get update -y
sudo apt-get install -y r-base-core cmake
- run:
command: |
sudo apt-get install -y libxml2-dev
sudo apt-get install -y libfontconfig1-dev
sudo apt-get install -y libudunits2-dev
sudo apt-get install -y libharfbuzz-dev
sudo apt-get install -y libfribidi-dev
sudo apt-get install -y libfreetype6-dev
sudo apt-get install -y libpng-dev
sudo apt-get install -y libtiff5-dev
sudo apt-get install -y libjpeg-dev
- run:
command: |
sudo Rscript -e "install.packages('devtools', dependencies=TRUE)"
sudo Rscript -e "install.packages('covr', dependencies=TRUE)"

sudo Rscript -e "install.packages('fields', dependencies=TRUE)"
sudo Rscript -e "install.packages('metafor', dependencies=TRUE)"
sudo Rscript -e "install.packages('meta', dependencies=TRUE)"
sudo Rscript -e "install.packages('ggplot2', dependencies=TRUE)"
sudo Rscript -e "install.packages('gridExtra', dependencies=TRUE)"
sudo Rscript -e "install.packages('data.table', dependencies=TRUE)"
sudo Rscript -e "install.packages('methods', dependencies=TRUE)"
sudo Rscript -e "install.packages('dplyr', dependencies=TRUE)"

sudo Rscript -e "install.packages('DSI', dependencies=TRUE)"
sudo Rscript -e "install.packages('DSOpal', dependencies=TRUE)"
sudo Rscript -e "install.packages('DSLite', dependencies=TRUE)"
sudo Rscript -e "install.packages('MolgenisAuth', dependencies=TRUE)"
sudo Rscript -e "install.packages('MolgenisArmadillo', dependencies=TRUE)"
sudo Rscript -e "install.packages('DSMolgenisArmadillo', dependencies=TRUE)"
sudo Rscript -e "install.packages('DescTools', dependencies=TRUE)"
sudo Rscript -e "install.packages('e1071', dependencies=TRUE)"
- run:
command: |
sudo Rscript -e 'library(covr); covr::codecov(token = "'$CODECOV_TOKEN'", quiet=FALSE)'
workflows:
build:
jobs:
- dsbaseclient
61 changes: 53 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,24 +1,69 @@
Package: dsBaseClient
Title: DataSHIELD Client Functions
Version: 6.3.1
Author: DataSHIELD Developers <[email protected]>
Maintainer: DataSHIELD Developers <[email protected]>
Description: DataSHIELD client functions for the client side.
Version: 6.3.3
Description: Base DataSHIELD functions for the client 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.
Authors@R: c(person(given = "Paul",
family = "Burton",
role = c("aut")),
person(given = "Rebecca",
family = "Wilson",
role = c("aut")),
person(given = "Olly",
family = "Butters",
role = c("aut")),
person(given = "Patricia",
family = "Ryser-Welch",
role = c("aut")),
person(given = "Alex",
family = "Westerberg",
role = c("aut")),
person(given = "Leire",
family = "Abarrategui",
role = c("aut")),
person(given = "Roberto",
family = "Villegas-Diaz",
role = c("aut"),
comment = c(ORCID = "0000-0001-5036-8661")),
person(given = "Demetris",
family = "Avraam",
role = c("aut"),
comment = c(ORCID = "0000-0001-8908-2441")),
person(given = "Yannick",
family = "Marcon",
role = c("aut"),
email = "[email protected]",
comment = c(ORCID = "0000-0003-0138-2023")),
person(given = "Stuart",
family = "Wheater",
role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0009-0003-2419-1964")))
License: GPL-3
Depends:
R (>= 3.5.0),
DSI (>= 1.3.0)
R (>= 4.0.0),
DSI (>= 1.7.1)
Imports:
fields,
metafor,
meta,
ggplot2,
gridExtra,
data.table,
panelaggregation,
methods,
dplyr
Suggests:
testthat
lme4,
httr,
tibble,
testthat,
e1071,
DescTools,
DSOpal,
DSMolgenisArmadillo,
DSLite
RoxygenNote: 7.3.2
Encoding: UTF-8
5 changes: 5 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(computeWeightedMeans)
export(ds.Boole)
export(ds.abs)
export(ds.asCharacter)
Expand Down Expand Up @@ -119,3 +120,7 @@ export(ds.var)
export(ds.vectorCalc)
import(DSI)
import(data.table)
importFrom(stats,as.formula)
importFrom(stats,na.omit)
importFrom(stats,ts)
importFrom(stats,weighted.mean)
4 changes: 2 additions & 2 deletions R/checkClass.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#' @description This is an internal function.
#' @details In DataSHIELD an object included in analysis must be of the same type in all
#' the collaborating studies. If that is not the case the process is stopped
#' @param datasources a list of \code{\link{DSConnection-class}} objects obtained after login. If the <datasources>
#' the default set of connections will be used: see \link{datashield.connections_default}.
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}} objects obtained after login. If the <datasources>
#' the default set of connections will be used: see \link[DSI]{datashield.connections_default}.
#' @param obj a string character, the name of the object to check for.
#' @keywords internal
#' @return a message or the class of the object if the object has the same class in all studies.
Expand Down
25 changes: 25 additions & 0 deletions R/computeWeightedMeans.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#' Compute Weighted Mean by Group
#'
#' This function is originally from the panelaggregation package.
#' It has been ported here in order to bypass the package being
#' kicked off CRAN.
#'
#' @author Matthias Bannert, Gabriel Bucur
#' @param data_table a data.table
#' @param variables character name of the variable(s) to focus on. The variables must be in the data.table
#' @param weight character name of the data.table column that contains a weight.
#' @param by character vector of the columns to group by
#' @import data.table
#' @importFrom stats as.formula na.omit ts weighted.mean
#' @export
computeWeightedMeans <- function(data_table, variables, weight, by) {

if (is.null(weight)) {
res_dt <- data_table[, lapply(.SD, mean, na.rm = TRUE), .SDcols = variables, by = by]
} else {
res_dt <- data_table[, lapply(.SD, weighted.mean, weight = eval(as.name(weight)), na.rm = TRUE),
.SDcols = variables, by = by]
}

res_dt
}
4 changes: 2 additions & 2 deletions R/ds.Boole.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
#' Default \code{'NA'}. For more information see details.
#' @param newobj a character string that provides the name for the output
#' object that is stored on the data servers. Default \code{boole.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.Boole} returns the object specified by the \code{newobj} argument
#' which is written to the server-side. Also, two validity messages are returned
#' to the client-side indicating the name of the \code{newobj} which
Expand Down
4 changes: 2 additions & 2 deletions R/ds.abs.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#' @param x a character string providing the name of a numeric or an integer vector.
#' @param newobj a character string that provides the name for the output variable
#' that is stored on the data servers. Default name is set to \code{abs.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}} objects obtained after login.
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}} objects obtained after login.
#' If the \code{datasources} argument is not specified the default set of connections will be
#' used: see \code{\link{datashield.connections_default}}.
#' used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.abs} assigns a vector for each study that includes the absolute values of
#' the input numeric or integer vector specified in the argument \code{x}. The created vectors
#' are stored in the servers.
Expand Down
4 changes: 2 additions & 2 deletions R/ds.asCharacter.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#' character.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{ascharacter.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asCharacter} returns the object converted into a class character
#' that is written to the server-side. Also, two validity messages are returned to the client-side
#' indicating the name of the \code{newobj} which has been created in each data source and if
Expand Down
4 changes: 2 additions & 2 deletions R/ds.asDataMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#' a matrix.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{asdatamatrix.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asDataMatrix} returns the object converted into a matrix
#' that is written to the server-side. Also, two validity messages are returned
#' to the client-side
Expand Down
4 changes: 2 additions & 2 deletions R/ds.asFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@
#' to be used in the creation of the matrix with dummy variables.
#' If the \code{fixed.dummy.vars} is set to FALSE then any value of the baseline level is not taken
#' into account.
#' @param datasources a list of \code{\link{DSConnection-class}} objects obtained after login.
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}} objects obtained after login.
#' If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asFactor} returns the unique levels of the converted
#' variable in ascending order and a validity
#' message with the name of the created object on the client-side and
Expand Down
6 changes: 3 additions & 3 deletions R/ds.asFactorSimple.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#' the name of the variable to be converted to a factor.
#' @param newobj.name a character string that provides the name for the output variable
#' that is stored on the data servers. Default \code{asfactor.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}} objects obtained after login.
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}} objects obtained after login.
#' If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return an output vector of class factor to the serverside. In addition, returns a validity
#' message with the name of the created object on the client-side and if creation fails an
#' error message which can be viewed using datashield.errors().
Expand Down Expand Up @@ -109,4 +109,4 @@ return(list(return.info=return.info,return.message=return.message)) #


}
#ds.asFactorSimple
#ds.asFactorSimple
4 changes: 2 additions & 2 deletions R/ds.asInteger.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#' an integer.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{asinteger.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asInteger} returns the R object converted into an integer
#' that is written to the server-side. Also, two validity messages are returned to the
#' client-side indicating the name of the \code{newobj} which
Expand Down
4 changes: 2 additions & 2 deletions R/ds.asList.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#' a list.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{aslist.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asList} returns the R object converted into a list
#' which is written to the server-side. Also, two validity messages are returned to the
#' client-side indicating the name of the \code{newobj} which has been created in each data
Expand Down
4 changes: 2 additions & 2 deletions R/ds.asLogical.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#' input object to be coerced to a logical.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{aslogical.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asLogical} returns the R object converted into a logical
#' that is written to the server-side. Also, two validity messages are returned
#' to the client-side indicating the name of the \code{newobj} which
Expand Down
4 changes: 2 additions & 2 deletions R/ds.asMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#' a matrix.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{asmatrix.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asMatrix} returns the object converted into a matrix
#' that is written to the server-side. Also, two validity messages are returned
#' to the client-side indicating the name of the \code{newobj} which
Expand Down
4 changes: 2 additions & 2 deletions R/ds.asNumeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#' a numeric.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{asnumeric.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.asNumeric} returns the R object converted into a numeric class
#' that is written to the server-side. Also, two validity messages are returned
#' to the client-side indicating the name of the \code{newobj} which
Expand Down
4 changes: 2 additions & 2 deletions R/ds.assign.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#' @param toAssign a character string providing the object to assign.
#' @param newobj a character string that provides the name for the output object
#' that is stored on the data servers. Default \code{assign.newobj}.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return \code{ds.assign} returns the R object assigned to a name
#' that is written to the server-side.
#' @author DataSHIELD Development Team
Expand Down
6 changes: 3 additions & 3 deletions R/ds.auc.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#' @param pred the name of the vector of the predicted values
#' @param y the name of the outcome variable. Note that this variable should include
#' the complete cases that are used in the regression model.
#' @param datasources a list of \code{\link{DSConnection-class}}
#' @param datasources a list of \code{\link[DSI]{DSConnection-class}}
#' objects obtained after login. If the \code{datasources} argument is not specified
#' the default set of connections will be used: see \code{\link{datashield.connections_default}}.
#' the default set of connections will be used: see \code{\link[DSI]{datashield.connections_default}}.
#' @return returns the AUC and its standard error
#' @author Demetris Avraam for DataSHIELD Development Team
#' @export
Expand Down Expand Up @@ -44,4 +44,4 @@ ds.auc <- function(pred=NULL, y=NULL, datasources=NULL){

return(output)

}
}
Loading