Learn R Programming

DSMolgenisArmadillo

A DSI implementation for the MOLGENIS Armadillo DataSHIELD Service.

Overview

You can use DSMolgenisArmadillo to analyse data shared in MOLGENIS Armadillo servers using DataSHIELD. DataSHIELD allows execution of a subset of analysis methods available in R. Methods such as:

ds.mean() ds.glm() ds.lmerSLMA()

For more detailed documentation check: https://cran.datashield.org/.

Installation

You can install the released version of DSMolgenisArmadillo from CRAN with:

install.packages("DSI")
install.packages("DSMolgenisArmadillo")

Make sure you install the DataSHIELD client (dsBaseClient) to perform the actual analysis. This needs to be a client which is version 6.0.0 or higher.

# install the DataSHIELD client
install.packages("dsBaseClient", repos = c("http://cran.datashield.org", "https://cloud.r-project.org/"), dependencies = TRUE)

Usage

To use the DataSHIELD Armadillo client and perform analysis in DataSHIELD there a few basic steps you need to take.

Get a token from the ID server

# Load the necessary packages.
library(dsBaseClient)
library(DSMolgenisArmadillo)

# specify server url
armadillo_url <- "https://armadillo.dev.molgenis.org"

# get token from central authentication server
token <- armadillo.get_token(armadillo_url)

Build the login frame

You need to specify the project, the folder and the table name(s) you want to access.

# build the login dataframe
builder <- DSI::newDSLoginBuilder()
builder$append(server = "armadillo",
               url = armadillo_url,
               token = token,
               table = "gecko/2_1-core-1_0/nonrep",
               driver = "ArmadilloDriver")

# create loginframe
logindata <- builder$build()

Login and assign the data

Assigning the data means that you will assign the data to a symbol in the analysis environment.

# login into server
conns <- datashield.login(logins = logindata, symbol = "core_nonrep", variables = c("coh_country"), assign = TRUE)

Perform an analysis

DataSHIELD has a range of methods you can use to perform analysis. Check: the dsBaseClient documentation to see which methods are available.

# calculate the mean
ds.mean("core_nonrep$coh_country", datasources = conns)
# create a histogram
ds.histogram(x = "core_nonrep$coh_country", datasources = conns)

Documentation

Check the package documentation for details.

Armadillo 2

The newest version (2.x) of DSMolgenisArmadillo will be only compatible with Armadillo version 3. If you still use Armadillo 2, you should use the 1.4.1 version of DSMolgenisArmadillo You can install this specific version the following commands:

packageurl <- "https://cran.r-project.org/src/contrib/Archive/DSMolgenisArmadillo/DSMolgenisArmadillo_1.4.1.tar.gz"
install.packages(packageurl, repos=NULL, type="source")

If you already installed another version of the package, you might want to run this first:

remove.packages("MolgenisArmadillo")

On windows additional R packages like rtools might be required in order to install the tar.gz package from the url.

Copy Link

Version

Install

install.packages('DSMolgenisArmadillo')

Monthly Downloads

683

Version

3.0.2

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Mariska Slofstra

Last Published

December 6th, 2025

Functions in DSMolgenisArmadillo (3.0.2)

dsListMethods,ArmadilloConnection-method

List methods
dsKeepAlive,ArmadilloConnection-method

Keep a connection alive
dsGetInfo,ArmadilloResult-method

Get result info
dsListResources,ArmadilloConnection-method

List Armadillo DataSHIELD Service resources
dsListPackages,ArmadilloConnection-method

List packages
dsGetInfo,ArmadilloDriver-method

Get driver info
armadillo.get_token

Get ID Token
dsIsAsync,ArmadilloConnection-method

Armadillo DataShield Service asynchronous support
dsIsCompleted,ArmadilloResult-method

Get whether the operation is completed
dsRmWorkspace,ArmadilloConnection-method

Remove a workspace
dsConnect,ArmadilloDriver-method

Connect to an Armadillo DataSHIELD service
dsDisconnect,ArmadilloConnection-method

Disconnect from an Armadillo DataSHIELD Service
dsSaveWorkspace,ArmadilloConnection-method

Save workspace
armadillo

Create an Armadillo DataSHIELD Service driver
ArmadilloCredentials-class

ArmadilloCredentials Class
armadillo.get_credentials

Get credentials information
dsAssignExpr,ArmadilloConnection-method

Assign the result of an expression
dsAggregate,ArmadilloConnection-method

Aggregate data
dsHasTable,ArmadilloConnection-method

Verify table exist and can be accessible for performing DataSHIELD operations.
dsHasResource,ArmadilloConnection-method

Verify resource exists.
dsAssignTable,ArmadilloConnection-method

Assign a table
dsAssignResource,ArmadilloConnection-method

Assign a resource
dsGetInfo,ArmadilloConnection-method

Get connection info
dsFetch,ArmadilloResult-method

Fetch the result
dsListWorkspaces,ArmadilloConnection-method

List workspaces
ArmadilloResult-class

Class ArmadilloResult.
DSMolgenisArmadillo-package

DSMolgenisArmadillo: 'DataSHIELD' Client for 'MOLGENIS Armadillo'
ArmadilloConnection-class

Class ArmadilloConnection.
ArmadilloDriver-class

Class ArmadilloDriver with constructor armadillo
dsRmSymbol,ArmadilloConnection-method

Remove an R symbol
dsListSymbols,ArmadilloConnection-method

List R symbols
dsListTables,ArmadilloConnection-method

List Armadillo DataSHIELD Service tables