From 96e1b05a68a44cf2d9224a28bfe40a86f8fcebfb Mon Sep 17 00:00:00 2001 From: nicolewhite Date: Fri, 12 Jun 2015 13:58:37 -0700 Subject: [PATCH] Append trailing forward slash to the URL if omitted. --- R/startGraph.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/startGraph.R b/R/startGraph.R index 04dba2d..2097a29 100644 --- a/R/startGraph.R +++ b/R/startGraph.R @@ -7,6 +7,10 @@ startGraph.default = function(url, username = character(), password = character( is.character(password), is.list(opts)) + if(substr(url, nchar(url) - 3, nchar(url)) == "data") { + url = paste0(url, "/") + } + graph = list() if(length(username) == 1 && length(password) == 1) {