[R] source a script file straight from a subversion repository

Duncan Murdoch murdoch at stats.uwo.ca
Sat Aug 2 02:02:46 CEST 2008


On 01/08/2008 7:49 PM, Steven McKinney wrote:
> Hi useRs
> 
> I'm trying to figure out how to source
> an R script file straight from a subversion
> repository, without having to put a copy
> of the script into the local working directory.
> 
> Has anyone done this?  
> 
> Something such as
> 
>   source(file =  paste("svn://myrepo.xxx.org/opt/svn/repos/",
>              "/Projects/SMcode/tags/v1.0/SMfuns.R",
>              sep = ""))
> 
> though this does not work.

It might work with http:// access, but svn:// is a fairly unusual 
protocol, and R isn't likely to support it.

Duncan Murdoch

> 
> Perhaps I need a connection of some sort
> instead of just a text string for the
> file argument?
> 
> I'm not sure if this can work, and have not
> found an example searching through the archives
> and help manuals as yet.
> 
> If anyone has done this and can offer any
> tips I'd appreciate it.
> 
> Best
> 
> Steve McKinney
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.



More information about the R-help mailing list