[R] howto test a package without installation

Ken Hutchison vicvoncastle at gmail.com
Mon Jan 16 02:52:36 CET 2012


install.packages('pathtotargz',
repos=FALSE)
I believe that will get you going.
  Hope that's helpful,
    Ken

On Jan 15, 2012, at 8:33 PM, Joshua Wiley <jwiley.psych at gmail.com> wrote:

> Hi Jonas,
> 
> Look at Hadley Wickham's devtools package.  It is designed with this
> sort of thing.  That said, it really is not too difficult to install
> as long as you have a working tool chain (which you will need to test
> it anyway).
> 
> R CMD INSTALL /tmp/sitools
> R
> require(sitools)
> and away you go testing
> 
> Cheers,
> 
> Josh
> 
> On Sun, Jan 15, 2012 at 4:51 PM, Jonas Stein <news at jonasstein.de> wrote:
>> Hi,
>> 
>> how can i play around with my first selfwritten package [*]
>> without to install it to my debian system?
>> 
>> I think of something like doing this:
>> 
>> /tmp/$ R
>> R version 2.11.1 (2010-05-31)
>> Copyright (C) 2010 The R Foundation for Statistical Computing
>> ISBN 3-900051-07-0
>> 
>>> library(/tmp/sitools)
>> 
>> 3 * kilo
>> [1] 3000
>> 
>> 
>> [*] https://github.com/jonasstein/sitools
>> 
>> --
>> Jonas Stein <news at jonasstein.de>
>> 
>> ______________________________________________
>> 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.
> 
> 
> 
> -- 
> Joshua Wiley
> Ph.D. Student, Health Psychology
> Programmer Analyst II, Statistical Consulting Group
> University of California, Los Angeles
> https://joshuawiley.com/
> 
> ______________________________________________
> 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