Hello In R, is it possible to load a script file into the editor via a web address? That is, I have a script file I want people to grab located at http://www.foo.com/bar.R and want to do something like file.edit("http://www.foo.com/bar.R"). But that doesn't seem to work. thanks [[alternative HTML version deleted]]
In almost all cases the answer is No. Some Web servers support WebDAV, but standard HTTP does not work that way. Has nothing to do with R. -- Sent from my phone. Please excuse my brevity. On February 1, 2016 9:16:59 PM PST, Benn Fine <bennfine at gmail.com> wrote:>Hello > >In R, is it possible to load a script file into the editor via a web >address? > >That is, I have a script file I want people to grab located at >http://www.foo.com/bar.R >and want to do something like file.edit("http://www.foo.com/bar.R"). >But >that doesn't seem to work. > >thanks > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.[[alternative HTML version deleted]]
Well, two steps: download.file() and then file.edit(). Best, Uwe Ligges On 02.02.2016 06:16, Benn Fine wrote:> Hello > > In R, is it possible to load a script file into the editor via a web > address? > > That is, I have a script file I want people to grab located at > http://www.foo.com/bar.R > and want to do something like file.edit("http://www.foo.com/bar.R"). But > that doesn't seem to work. > > thanks > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >