initialize = function(auth_token = NULL, host_name = NULL)
{
if(!is.null(host_name))
- Sys.setenv(ARVADOS_API_HOST = host_name)
+ Sys.setenv(ARVADOS_API_HOST = host_name)
if(!is.null(auth_token))
Sys.setenv(ARVADOS_API_TOKEN = auth_token)
if(host_name == "" | token == "")
stop(paste0("Please provide host name and authentification token",
" or set ARVADOS_API_HOST and ARVADOS_API_TOKEN",
- " environmental variables."))
+ " environment variables."))
version <- "v1"
host <- paste0("https://", host_name, "/arvados/", version, "/")
getElement = function(relativePath)
{
+ if(startsWith(relativePath, "./"))
+ relativePath <- substr(relativePath, 3, nchar(relativePath))
+
if(endsWith(relativePath, "/"))
relativePath <- substr(relativePath, 0, nchar(relativePath) - 1)