As the doctor gone rogue

September 19, 2013

Sourcing R script over HTTPS – Stack Overflow

Filed under: R — hypotheses @ 12:44 pm

You can use

source("http://yourcode.com/rcode.R")

to source your script from online resource.
However, source doesn’t work if you have https link,

Here’s some solutions I found on stack overflow.

library(RCurl)
eval(expr = parse( text = getURL"http://www.mayin.org/ajayshah/KB/R/tutorial.R", ssl.verifypeer=FALSE))

via Sourcing R script over HTTPS – Stack Overflow.

Advertisements

2 Comments »

  1. Do you know how to destring a string/character in R?

    Comment by tandamonium — September 20, 2013 @ 12:07 pm

    • I think you can probably use factor(x) to convert some text to numeric code. You’d better check what code R picked for you though.

      Comment by hypotheses — September 20, 2013 @ 12:22 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: