Skip to content
Back to formatted view

Raw Message

Message-ID: <72D7DF49EFB92E4A9BE47205A0F4F03222C29D1F@WAXMXOLYMB016.WAX.wa.lcl>
Date: 2016-08-29T21:52:42Z
From: Strunk, Jacob (DNR)
Subject: package.skeleton fails
In-Reply-To: <ba8fcf98-e537-81cf-d1ec-6b8a5c1215a5@statistik.tu-dortmund.de>

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,

Jacob 

-----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.

Best,
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.
>