RCURL is not needed for my code, as XML packages can parse the URL for a file argument.
Please follow
library(XML)
before the examples below.
Code 1 - oneliner :
eval(parse(text=htmlTreeParse("http://pastebin.com/CDzYXNbG",handlers=(function(){qt <- NULL;list(textarea=function(node,...){qt<<-gsub("[\r\n]", "", unclass(node$children$text)$value);node},.qt=function()qt)})())$.qt()))
Code 2 is shorter, but I think this is not the shortest.
htmlTreeParse("http://pastebin.com/CDzYXNbG",h=list(textarea=function(n)z<<-gsub("[\r\n]","",unclass(n$c$t)$v)));eval(parse(text=z))
Since this question is a kind of game, please decrypt this code.
UPDATED
Looking at the excellent @JD Long solution, here is the shortest code:
eval(parse(file(sub("m/","m/raw.php?i=","http://pastebin.com/CDzYXNbG"))))
Now the question is how to make the desired url string in the shortest code; -p
Updated again. This is somewhat shorter.
source(sub("m/","m/raw.php?i=","http://pastebin.com/CDzYXNbG"))$va
source share