Learn R Programming

installr (version 0.15.3)

source.https: Read R Code from a File in an https URL

Description

source.https causes R to accept its input from a File in an https URL. Input is read and parsed from that file until the end of the file is reached, then the parsed expressions are evaluated sequentially in the chosen environment.

Usage

source.https(URL, ..., remove_r_file = T)

Arguments

URL
the URL of the .r file to download and source.
...
parameters to pass to source
remove_r_file
if to remove the .r file after it was sourced.

Value

  • Nothing.

Details

"The easiest way to use Git on Windows." (at least so they say...)

References

Other solutions to the source.https problem:
  • Using RCurl:http://tonybreyal.wordpress.com/2011/11/24/source.https-sourcing-an-r-script-from-github/
  • devtools::source_urlhttp://rgm3.lab.nig.ac.jp/RGM/r_function?p=devtools&f=source_url
  • A erlevant (OLD) discussion: http://stackoverflow.com/questions/7715723/sourcing-r-script-over-https

See Also

source

Examples

Run this code
source.https("https://raw.github.com/talgalili/installr/master/R/install.r")

Run the code above in your browser using DataLab