Skip to content

Installation

The latest versions of R Depot are available on our downloads page. R Depot is available for Windows, Mac and Linux.

Docker

The following prerequisites are needed:

  • docker
  • docker-compose (i.e. by issuing "pip install docker-compose")
  • port 80 is not used (localhost, check for nginx or apache service)

Please make sure the following files are available:

  • ./docker/app/rdepot.war: downloaded from https://s3-eu-west-1.amazonaws.com/oa-rdepot-build-artifacts/rdepot.war (latest development build)
  • ./docker/repo/oa-rdepot-repo.jar: downloaded from https://s3-eu-west-1.amazonaws.com/oa-rdepot-build-artifacts/oa-rdepot-repo.jar (latest development build)

The final step is to launch the Docker containers using docker-compose:

  • docker-compose up -d

One can then go to http://localhost to log in.

Regarding users and passwords: all passwords are "password" (without ""), because the application is connected by default to "scientists" group of the ForumSys LDAP server (http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/).

  • user "einstein" is an administrator
  • user "tesla" is a repository maintainer (but not linked to a repository, an administrator has to do that manually)
  • user "galieleo" is a package maintainer (but not linked to a package, a repository maintainer or administrator has to do that manually)
  • user "newton" is a regular user

To complete an end-to-end flow: R package to R Depot to Repository Server to R client, the following steps are needed:

  • create a repository with (or edit)
    • a repository's publication URI: http://localhost/repo/repositoryName and
    • a server address: http://oa-rdepot-repo:8080/repositoryName
  • submit one or more packages to that repository via the R Depot web interface
  • publish the repository using the green button in the repositories view (if needed)
  • go to the published package page (repositories view, click repository name, click package name)
  • use the install URL shown on the published package page to install the package in R (install.packages("somePackage", repos = c("http://localhost/repo/repositoryName", getOption())))

To (re)start with fresh database:

  • remove the containers via "docker-compose down -v"
  • start up again using "docker-compose up -d"