Permalink
Browse files

Fix deprecated httr call. Fixes #170

  • Loading branch information...
1 parent c1a134b commit f2609325b02242974fca11a6eab91ba73151718a @wch wch committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/run-source.r
View
@@ -16,7 +16,7 @@
source_url <- function(url, ...) {
request <- GET(url)
stop_for_status(request)
- handle <- textConnection(text_content(request))
+ handle <- textConnection(content(request, as = "text"))
on.exit(close(handle))
source(handle, ...)
}

0 comments on commit f260932

Please sign in to comment.