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

View source: R/install.R

source.httpsR Documentation

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.

Details

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

Value

Nothing.

References

Other solutions to the source.https problem:

  • Using RCurl

  • devtools::source_url

  • A relevant (OLD) discussion: https://stackoverflow.com/questions/7715723/sourcing-r-script-over-https

See Also

source

Examples

## Not run: 
source.https("https://raw.github.com/talgalili/installr/master/R/install.r") 

## End(Not run)

installr documentation built on Nov. 13, 2022, 1:06 a.m.