here's a cute one I just figured out, which will pull a vignette right out
of SVN:

## targets
pkg <- 'easyRNASeq'
subDir <- 'vignettes' # or 'inst/doc'
vignette <- pkg # could be different

## bookkeeping
userPwd <- 'readonly:readonly'
vignetteFile <- paste(vignette, 'Rnw', sep='.')
stangleFile <- sub('Rnw','R',vignetteFile)
svnUrl <- 'https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks'
completeUrl <- paste(svnUrl, pkg, subDir, vignetteFile, sep='/')

## the real work
require(RCurl)
Rnw <- getURL(completeUrl, userpwd=userPwd)
cat(Rnw, file=vignetteFile)
Stangle(vignetteFile)
# Writing to file easyRNASeq.R

## now run it, if you wish
source(stangleFile, verbose=T)

## tested with R 2.15.2, R --vanilla CMD BATCH getVignette.R (the above)



On Mon, Nov 26, 2012 at 10:33 AM, Dan Tenenbaum <dtenenba@fhcrc.org> wrote:

> On Mon, Nov 26, 2012 at 10:30 AM, Richard Friedman
> <friedman@cancercenter.columbia.edu> wrote:
> > Tim and Dan,
> >
> > Thank you both for for your replies. Dan's worked but it gave
> > me the released as distinct from the development version,
>
>
> My mistake. Substitute "devel" for "release" in both URLs and you'll
> get what you want.
>
>
> I couldn't
> > get Tim's to work (my fault not Tim's) but I suspect that it would
> > have also given me the released version.
>
> It depends which version of the package you had installed.
> Dan
>
>
>  I found I could get the development
> > version like this:
> >
> > http://www.bioconductor.org/packages/2.12/bioc/html/easyRNASeq.html
> >
> >
> > Best wishes,
> > Rich
> > Richard A. Friedman, PhD
> > Associate Research Scientist,
> > Biomedical Informatics Shared Resource
> > Herbert Irving Comprehensive Cancer Center (HICCC)
> > Lecturer,
> > Department of Biomedical Informatics (DBMI)
> > Educational Coordinator,
> > Center for Computational Biology and Bioinformatics (C2B2)/
> > National Center for Multiscale Analysis of Genomic Networks (MAGNet)
> > Room 824
> > Irving Cancer Research Center
> > Columbia University
> > 1130 St. Nicholas Ave
> > New York, NY 10032
> > (212)851-4765 (voice)
> > friedman@cancercenter.columbia.edu
> > http://cancercenter.columbia.edu/~friedman/
> >
> > In memoriam, Ray Bradbury
> >
> > On Nov 26, 2012, at 1:08 PM, Tim Triche, Jr. wrote:
> >
> > R CMD Stangle packageName/inst/doc/VignetteName.Rnw
> >
> > or
> >
> > R CMD Stangle packageName/vignettes/VignetteName.Rnw
> >
> > will deposit a file VignetteName.R into the corresponding directory and
> > wah-lah, tout va bien.
> >
> >
> >
> > On Mon, Nov 26, 2012 at 10:04 AM, Richard Friedman
> > <friedman@cancercenter.columbia.edu> wrote:
> >>
> >> Dear Bioconductor Developers,
> >>
> >>         Released versions of Bioconductor packages generally come with
> an
> >> R script which
> >> contains what is done in the vignettes. Are these also available for
> >> development versions?
> >> If so, how can I get the script for a given package? I am interest in
> >> easyRNASeq in
> >> particular.
> >>
> >> Thanks and best wishes,
> >> Rich
> >>
> >> Richard A. Friedman, PhD
> >> Associate Research Scientist,
> >> Biomedical Informatics Shared Resource
> >> Herbert Irving Comprehensive Cancer Center (HICCC)
> >> Lecturer,
> >> Department of Biomedical Informatics (DBMI)
> >> Educational Coordinator,
> >> Center for Computational Biology and Bioinformatics (C2B2)/
> >> National Center for Multiscale Analysis of Genomic Networks (MAGNet)
> >> Room 824
> >> Irving Cancer Research Center
> >> Columbia University
> >> 1130 St. Nicholas Ave
> >> New York, NY 10032
> >> (212)851-4765 (voice)
> >> friedman@cancercenter.columbia.edu
> >> http://cancercenter.columbia.edu/~friedman/
> >>
> >> In memoriam, Ray Bradbury
> >>
> >>
> >>         [[alternative HTML version deleted]]
> >>
> >> _______________________________________________
> >> Bioc-devel@r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/bioc-devel
> >
> >
> >
> >
> > --
> > A model is a lie that helps you see the truth.
> >
> > Howard Skipper
> >
> >
>



-- 
*A model is a lie that helps you see the truth.*
*
*
Howard Skipper<http://cancerres.aacrjournals.org/content/31/9/1173.full.pdf>

	[[alternative HTML version deleted]]

