Re: [R] package.skeleton fails

2016-08-29 Thread Strunk, Jacob (DNR)
option like "--no-site-file" Thank you, Jacob -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Sunday, August 28, 2016 7:28 AM To: Strunk, Jacob (DNR) <jacob.str...@dnr.wa.gov>; r-help@r-project.org Subject: Re: [R] package.skeleton fails

Re: [R] package.skeleton, environment argument causes error

2016-08-28 Thread Uwe Ligges
It would be helpful for us if you provide a reproducible examples when the current package.skeleton fails. Best, Uwe Ligges On 19.08.2016 00:12, Jacob Strunk wrote: Hello, I have been using package.skeleton from within an lapply statement successfully (assuming good source code) with the

Re: [R] package.skeleton fails

2016-08-28 Thread Uwe Ligges
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

[R] package.skeleton fails

2016-08-24 Thread Strunk, Jacob (DNR)
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=

[R] package.skeleton, environment argument causes error

2016-08-18 Thread Jacob Strunk
Hello, I have been using package.skeleton from within an lapply statement successfully (assuming good source code) with the following setup in the past: x=try(package.skeleton(package_name,path=pathi,code_files=file_i)) but now fails with error: Error: evaluation nested too deeply: infinite

Re: [R] package.skeleton warning

2015-04-29 Thread carol white via R-help
So I finally used filenames - list.files(~/Desktop/myPkg/R/, full.names = TRUE) package.skeleton(name = myPackage, code_files = filenames) and still despite the warnings mentioned before, the man and R folders seem to have been created correctly. I had put the vignettes folder and inst in the

Re: [R] package.skeleton warning

2015-04-29 Thread Duncan Murdoch
On 29/04/2015 3:49 AM, carol white wrote: So I finally used filenames - list.files(~/Desktop/myPkg/R/, full.names = TRUE) package.skeleton(name = myPackage, code_files = filenames) and still despite the warnings mentioned before, the man and R folders seem to have been created correctly. I

[R] package.skeleton warning

2015-04-28 Thread carol white via R-help
Hi,Why do I get this warning when I run package.skeleton() and how to solve this problem? Warning messages: 1: In package.skeleton(name = myPackage, code_files = ~/Desktop/myPkg/R/) :   Invalid file name(s) for R code in ./myPackage/R:   'R'  are now renamed to 'zname.R' 2: In file.rename(from =

Re: [R] package.skeleton warning

2015-04-28 Thread Duncan Murdoch
On 28/04/2015 10:05 AM, carol white via R-help wrote: Hi,Why do I get this warning when I run package.skeleton() and how to solve this problem? Warning messages: 1: In package.skeleton(name = myPackage, code_files = ~/Desktop/myPkg/R/) : Invalid file name(s) for R code in ./myPackage/R:

Re: [R] package.skeleton warning

2015-04-28 Thread carol white via R-help
I have many code files so listing them will be long. When leave it empty, I get package.skeleton(name = myPackage, code_files = ) Error in sys.source(cf, envir = environment) : '' is not an existing file There should be an automatic way to source all code files instead of listing them. Even if

Re: [R] package.skeleton warning

2015-04-28 Thread Jeff Newmiller
You don't have to do it by hand. Use the list.files function to create the list of file names. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.

[R] package.skeleton only exports the first 73 lines of code

2012-03-05 Thread jeff_hawkes
Hi all, apologies for the ignorance I'm about to describe: I'm trying to create a .r file for a function I've written (~300 lines of code). The function is called 'total' and I've entered the most simple package.skeleton: package.skeleton(name=test, list=c(total)) The export works fine (it

Re: [R] package.skeleton only exports the first 73 lines of code

2012-03-05 Thread Uwe Ligges
On 05.03.2012 19:30, jeff_hawkes wrote: Hi all, apologies for the ignorance I'm about to describe: I'm trying to create a .r file for a function I've written (~300 lines of code). The function is called 'total' and I've entered the most simple package.skeleton: package.skeleton(name=test,

Re: [R] package.skeleton only exports the first 73 lines of code

2012-03-05 Thread jeff_hawkes
Copying the code as text into the incomplete .r file worked, good idea. I still don't know why the export didn't work though. Thanks, Jeff -- View this message in context: http://r.789695.n4.nabble.com/package-skeleton-only-exports-the-first-73-lines-of-code-tp4447061p4447374.html Sent from

Re: [R] package.skeleton()

2011-12-19 Thread steven mosher
Here ben I have a tutorial on how to do it http://stevemosher.wordpress.com/step-8-the-sample-package/ On Sun, Dec 18, 2011 at 11:49 PM, Petr PIKAL petr.pi...@precheza.cz wrote: Hi If I remember correctly I do start clear R -vanilla session copy my functions to it. run

Re: [R] package.skeleton()

2011-12-18 Thread Ben Ganzfried
Hi Duncan, Thanks for your response. That's the confusing thing, I didn't receive a message and I can't seem to find the new source package directory anywhere. I would greatly appreciate any advice about what I might be doing wrong. Happy Holidays, Ben On Fri, Dec 16, 2011 at 7:12 PM, Duncan

Re: [R] package.skeleton()

2011-12-18 Thread Petr PIKAL
Hi If I remember correctly I do start clear R -vanilla session copy my functions to it. run package.skeleton(some.name) which creates the some.name directory. Regards Petr Hi Duncan, Thanks for your response. That's the confusing thing, I didn't receive a message and I can't seem to

[R] package.skeleton()

2011-12-16 Thread Ben Ganzfried
Hi-- I'm creating an R package, I've read through Writing R Extensions and the package.skeleton() R page-- and I'm still running into a little confusion. I would greatly appreciate any advice you can provide. Where do I run my following line of code from?: package.skeleton(name = a, code_files

Re: [R] package.skeleton()

2011-12-16 Thread Ben Ganzfried
*the line in question is*: package.skeleton(name = a, code_files = EsetObject.r) On Fri, Dec 16, 2011 at 4:12 PM, Ben Ganzfried benganzfr...@post.harvard.edu wrote: Hi-- I'm creating an R package, I've read through Writing R Extensions and the package.skeleton() R page-- and I'm still

Re: [R] package.skeleton()

2011-12-16 Thread Duncan Murdoch
On 11-12-16 4:12 PM, Ben Ganzfried wrote: Hi-- I'm creating an R package, I've read through Writing R Extensions and the package.skeleton() R page-- and I'm still running into a little confusion. I would greatly appreciate any advice you can provide. Where do I run my following line of code

[R] package.skeleton generates .env = environment

2011-10-04 Thread pedabreu
Hello, i trying to create a package using package.skeleton. I use R.oo package to create oriented-object classes. When i use package.skeleton, this creates the following file: classA - structure(function() { extend(Object(),Class A,

Re: [R] package.skeleton generates .env = environment

2011-10-04 Thread Duncan Murdoch
On 04/10/2011 6:40 AM, pedabreu wrote: Hello, i trying to create a package using package.skeleton. I use R.oo package to create oriented-object classes. When i use package.skeleton, this creates the following file: classA- structure(function() { extend(Object(),Class

[R] package.skeleton() does not create 'data' folder

2011-06-08 Thread Nipesh Bajaj
Hi again, I was using package.skeleton() function to create the skeleton of my package in windows. Here is my attempt: rm(list = ls()) setwd(F:/R_PackageBuild) package.skeleton(trial1, namespace = TRUE, code_files = F:/R_PackageBuild/trial.r) In the trial.r file, there are 2 objects, one is a

[R] R package.skeleton

2009-03-01 Thread Ajay ohri
Hi I am getting the following error package.skeleton(ohri) Creating directories ... Creating DESCRIPTION ... Creating Read-and-delete-me ... Saving functions and data ... Making help files ... Done. Further steps are described in './ohri/Read-and-delete-me'. Warning messages: 1: In

[R] package.skeleton again

2008-05-31 Thread cgenolin
Hi the list I do not manage to build a package using package.skeleton. My pacakge in called 'partition' I have no probleme to source the file. Then I run package.skeleton(partition) I get : Saving function and data... Error in file(file,ifelse(append,a,w)): impossible to open the connexion

Re: [R] package.skeleton from within function: objects not found

2008-01-29 Thread Tineke Casneuf
Hi all, sorry to bother you all once more, but I still haven't solved this problem. Is there anyone who knows how to pass an environment as an argument to package.skeleton from within function, so that this environment can be saved into a newly build source package? See example script below.

[R] package.skeleton from within function: objects not found

2008-01-28 Thread Tineke Casneuf
Hi all, I ran into a strange error: I am trying to create a package skeleton for a new source package from within a function. Objects that are created in this function are to be included in my package, but for some reason, I get an error message saying that these objects cannot be found. Here is

Re: [R] package.skeleton from within function: objects not found

2008-01-28 Thread Tineke Casneuf
Indeed, this works. Thanks! On Jan 28, 2008 9:30 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote: You need to set the 'environment' argument (the help file is incomplete). e.g. env - sys.frames()[[sys.nframe()]] package.skeleton(name = pkgName, list=c(f,e, myenv), env=env) On Mon, 28 Jan

Re: [R] package.skeleton from within function: objects not found

2008-01-28 Thread Tineke Casneuf
Professor Ripley, do you have an idea why it works for me to save different types of objects, but not for the environment object I construct in the function: ### Example of a function that works without error: fun2 - function(myname){ f - function(x,y) x+y g - function(x,y) x-y d -