Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Append trailing forward slash to the URL if omitted.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolewhite committed Jun 12, 2015
1 parent 727661c commit 96e1b05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/startGraph.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 96e1b05

Please sign in to comment.