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
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
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
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=
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
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
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
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 =
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:
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
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: ##.#.
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
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,
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
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
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
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
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
*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
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
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,
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
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
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
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
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.
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
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
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 -
29 matches
Mail list logo