This R package makes the AWS SDK for Java jar files available to be used in downstream R packages.


Please note that this package was originally created in 2015, when the Python integration in R was much less mature, so using the Java SDK made sense. Since then, using the Python SDK is much easier than relying on the Java SDK from R, so thus this package will be deprecated in the future, and I rather suggest using the botor R package (using the boto3 Python package in the background) when possible:

This package is still maintained for the near future to provide support for the R packages depending on it, especially AWR.Kinesis that will still need Java support due to the MultiLangDaemon.

Why the name?

This is an R package bundling AWS files, but S is so 1992.

What is it good for?

The AWS Java SDK is useful for R package developers working with AWS so that they can easily import this package to get access to the Java jar files. Quick example on using the Amazon S3 Java client:

> ## adding the jars to the Java classpath
> library(rJava)

> ## creating a client in Java
> kc <- .jnew("")
> ## listing the account name
> kc$getS3AccountOwner()$getDisplayName()
[1] "foobar"

For a more complete (yet simple) example implementation, see the AWR.KMS package hosted on CRAN and GitHub, or AWR.Kinesis at GitHub


CRAN version

Although the package is hosted on CRAN, so installation is as easy as:


But due to the large size of the Java SDK and the related CRAN policy, it only includes the very lightweight wrapper around the jar files and not the actual Java SDK files.

To install the required Java files, you can download the most recent compiled version from, then extract the jar files either directly to the installed AWR package’s java folder, or at any other folder on your computer and use rJava::.jaddClassPath to reference those.

Compiling from source can be done by downloading the sources from and following the instructions using maven – a quick example that was used in automated builds for older version of AWR:


wget -q$VERSION.tar.gz
tar xzf $VERSION.tar.gz
rm $VERSION.tar.gz

cd aws-sdk-java-$VERSION
DATE=`date -r pom.xml +'%Y-%m-%d %H:%M'`

# the folder structure changed over time and different dependencies were also required, so this these checks
if [ -d aws-java-sdk ]; then
    cd aws-java-sdk
    mvn dependency:copy-dependencies > /dev/null
    cp target/dependency/*.jar ../../
    cd ..
    # wget
    # mvn install:install-file -Dfile=saxon9he- -DgroupId=net.sf.saxon \
    #     -DartifactId=saxon9he -Dversion= -Dpackaging=jar
    mvn clean package  -DskipTests -Dmaven.test.skip=true -Dgpg.skip=true
    mvn dependency:copy-dependencies
    cp target/dependency/*.jar ../
    cp target/*.jar ../

cd ..
rm -rf aws-sdk-java-$VERSION
cd ../..

If you just want to quickly install even an older version of the Java SDK, you can also use the drat repo created a long time ago on GitLab:

install.packages('AWR', repos = '')

Note that this will overwrite your AWR installation.


This R package is a very thin layer on the top of the AWS Java SDK, so please consult directly for the list of changes.