devtools (version 1.0)

source_url: Run a script through some protocols such as http, https, ftp, etc.

Description

Internally, source_url calls getURL in RCurl package and then read the contents by textConnection, which is then sourceed. See ?getURL for the available protocol.

Usage

source_url(url, ...)

Arguments

url
url
...
other options passed to source

Examples

Run this code
source_url("https://raw.github.com/gist/1654919/8161f74fb0ec26d1ba9fd54473a96f768ed76f56/test2.r")

Run the code above in your browser using DataCamp Workspace