[R] package.skeleton fails

Strunk, Jacob (DNR) Jacob.Strunk at dnr.wa.gov
Mon Aug 29 23:52:42 CEST 2016

Ok, I apologize - we seem to have a component in our environment that interacts with this function. Thank you for your help.

You wouldn't happen to know if there is there a way to modify the way the environment is loaded in package.skeleton? - I don't see any way to pass it a configuration option like "--no-site-file"

Thank you,


-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de] 
Sent: Sunday, August 28, 2016 7:28 AM
To: Strunk, Jacob (DNR) <Jacob.Strunk at dnr.wa.gov>; r-help at r-project.org
Subject: Re: [R] package.skeleton fails

Your code works for me, and I do not see any lapply in the example you provide below.

Uwe Ligges

On 24.08.2016 21:21, Strunk, Jacob (DNR) wrote:
> Hello, I have been using package.skeleton from within an lapply 
> statement successfully (assuming good source code) with the following 
> setup in the
> past:
> writeLines("testfun=function(){}", "c:\\temp\\testfun.r") 
> x=try(package.skeleton("test_pack",path="c:\\temp\\tests\\",code_files
> = "c:\\temp\\testfun.r"))
> but it now fails with the error:
> Error: evaluation nested too deeply: infinite recursion / 
> options(expressions=)?
> I am working in RStudio Version 0.99.896, with 64 bit R version 3.3.1
> (2016-06-21)
> I have been poking in the code and the error appears happen within the subfunction '.fixPackageFileNames'
> Thanks for any assistance you might be able to provide.
> Jacob
> 	[[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.

More information about the R-help mailing list