TranSMART R client package

This package enables R programmers to access to a tranSMART installation via its RESTful API. Usually this involves authentication with the tranSMART installation. The package has built-in functionality for obtaining an authentication token.


Package dependencies

Protocol Buffers

The protobuf and its accompanying c implementation package need to be installed on the machine. The Protocol Buffers must be at version 2.2.0 or newer and can be installed either via the distribution package manager.


# apt-get install libcurl4-openssl-dev libssl-dev libprotoc-dev libprotobuf-dev protobuf-c-compiler


# # Incomplete, you also need libcurl and libssl development packages and maybe a protobuf-compiler devel package
# yum install protobuf-compiler protobuf protobuf-devel

Or install it from source with one of the packages available at


Windows users might need to install the curl package from

Installing transmartRClient

The package can be installed directly from github using the devtools package:


or by following the instructions in bin/installCommands.R

Demonstration of the package

The demo/demoCommands.R file contains a short demo of how to connect to tranSMART and how to retrieve data from it.


The bin/devCommands.R file contains some pointers that might be useful to anyone interested in developing on this package.

In order to contribute a patch, follow the instructions given in

And: thanks for considering contributing!

transmart/RInterface documentation built on Oct. 18, 2017, 2:11 a.m.