Displaying 20 results from an estimated 900 matches similar to: "package.skeleton() does not create 'data' folder"
2011 Jun 09
1
package.skeleton() does not create 'data' folder
Hi again, yesterday I mailed this query however I could not see this
on the mail list. Therefore, I am reposting it 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
2002 Jun 26
2
contrast matrix in package multcomp
Hi,
I've got a problem building a contrast matrix for the Dunnet contrast in
package multcopm. The following works fine:
> summary(simtest(adiff ~ trial))
Simultaneous tests: Dunnett contrasts
Data: adiff by trial
Contrast matrix:
trial1 trial2 trial3 trial4 trial5
trial2-trial1 -1 1 0 0 0
trial3-trial1 -1 0 1 0 0
2010 Sep 19
2
working with eval and environments
I'm trying to get the following section of code to work, I think the problem
is being caused by the assignment of data to the lm function not evaluating
to "train" in the parent environment but I can't seem to figure out how to
do this.
fitmodel <- function(trial,data)
{
wrap.lm <- function(formula,data,...) { cat("in wrap lm",NROW(data),"\n");
2002 Apr 17
1
concat
i have a function that returns a list containing a variety of variable types
i am trying to run the function multiple times and return the output into a
variable with a semi-consistent naming pattern
i.e., for ten trials i want to return the list into variables
trial1,trial2,...trial10
is there a generic way to get this to happen
i have a similar process that does the same thing to an external
2008 Aug 07
1
package.skeleton does invalide regular name, bis... (PR#12020)
Hi the list,
I guess I find an other bug (the first one is at the end off this mail)
in package.skeleton. It occurs when we give as code_file some file that
are not in the current directories.
If we give a single file to code_file (like code_file=3D"riri/fifi.R"),
it does not reconize fifi.R as a regular name and change it to
riri/zfifi.R
If we give several file to code_file (like
2008 Mar 30
1
package.skeleton.S4
Hi the devel list.
I am adapting the package.skeleton to S4 classes and methods
I would have been very proud to post a new working function on this list.
Unfortunately, I do not manage to solve all the problems. Mainly
- sys.source does not compile a file with setClass
- dumpMethod does not exists yet
In the following code, thise two problems are notified by a line
#################
Still
2008 Jul 15
1
package.skeleton does invalide regular name...
Hi the list,
I am using package.skeleton on a file that has a very classic name, but
package.skeleton detect it as a invalid name :
--- 8< -------
package.skeleton(name="packClassicBis",code_files="./packClassic/R/progClassic.R")
Cr?ation des r?pertoires...
Cr?ation de DESCRIPTION...
Cr?ation de 'Read-and-delete-me'...
Recopiage des fichiers de code...
Cr?ation
2013 Jun 04
0
bug in package.skeleton(), and doc typo.
Hi all,
I think there's a bug in package.skeleton(), when using the environment
argument:
Example:
env <- new.env()
env$hello <- function() { print('hello') }
package.skeleton(name='mypkg', environment=env)
==> does not create any source in mypkg/R/*
By the way, package.skeleton(name='mypkg', environment=env, list="hello")
does not work either.
2011 Dec 16
2
package.skeleton()
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 = "EsetObject.r"
I'm currently running it from
2008 Apr 13
1
R 2.7 package.skeleton
Hi the devel list
I am testing package.skeleton in R 2.7 (download today). I get an error
that I do not understand. I guess it is not an error from my code since
I have no probleme when I source it. So is it a error in
package.skeleton?
Here is my code :
--- 8< ------ File essai.r -------------
setClass(
Class="ClusterizLongData",
representation=representation(
2011 Jul 18
4
Understanding R's "Environment" concept
Hi all, I am trying to understand the R's "environment" concept
however the underlying help files look quite technical to me. Can
experts here provide me some more intuitive ideas behind this concept
like, why it is there, what exactly it is doing in R's architecture
etc.?
I mainly need some non-technical intuitive explanation.
Thanks,
2011 Jul 18
4
Understanding R's "Environment" concept
Hi all, I am trying to understand the R's "environment" concept
however the underlying help files look quite technical to me. Can
experts here provide me some more intuitive ideas behind this concept
like, why it is there, what exactly it is doing in R's architecture
etc.?
I mainly need some non-technical intuitive explanation.
Thanks,
2009 Jul 09
1
Bug in package.skeleton, R 2.9.0?
Dear all,
I am using package.skeleton to build a small packages of misc function
for personal use. I have recently discovered that the option
force=TRUE doesn't seem to do what is meant to do. Here's what I'm
doing:
> setwd("/Users/danielk/Documents/R/packages/dk")
> files <- paste("codebase", dir("codebase", pattern=".R"),
2011 Feb 10
3
Finding length of unique numbers in a vector
Hello there, would you please look into my codes? Here I have following:
> set.seed(100)
> samp <- sample(c(1,-1,0), 20, replace=T); samp
[1] 1 1 -1 1 -1 -1 0 -1 -1 1 -1 0 1 -1 0 0 1 -1 -1 0
Here I want to calculate the length of each unique number for above vector.
How can I do that?
Thanks in advance
[[alternative HTML version deleted]]
2013 Apr 14
1
Empty package skeleton
Hi,
I know this has been reported/asked before (
http://tolstoy.newcastle.edu.au/R/e15/devel/11/10/0831.html) but it would
still be just nice to have a fix for the not user-friendly fact that one
cannot create a completely empty package skeleton (see previous post for a
suggested patch).
In the same vein, I would add to the original suggestion from Herve Pages
that it would be nice to have a
2011 Feb 19
2
Seeking help in Package development
Dear all, I am a new user of R and currently trying hard to develop my
own package. Here I am following this tutorial
'http://www.mathfinance.cn/how-to-create-an-R-package-in-windows/'
Here it says that (step 8): "open a ?command prompt? window, change
the directory to where your package is, type the command ?R CMD build
MonteCarloPi? to build the package, this will generate a file
2011 Sep 07
4
suggestion for proportions
Hi, I am wondering if anyone can suggest how to test the equality of 2 proportions. The caveat here is that the 2 proportions were calculated from the same number of samples using 2 different tests. So essentially we are comparing 2 accuracy rates from same, say 100, samples. I think this is like a paired test, but don't know if really we need to consider the "paired" nature of the
2011 Jul 08
2
Selecting subset of a given vector
Hi there, given a numeric vector, I can select numbers within a
specific range. However presently, I have something related but
different problem. Suppose I have a numeric vector. Now take an
arbitrary number. Goal to to chose a specific subset with a given
length, from that given vector, so that those chosen numbers are
centered around that given constant.
Here is one example:
### My original
2011 Mar 06
1
Writing Rd files
Hi all, I have created a package and now into writing it's help files.
However I am having problem on, how to put a 'new line' in any
statement of the help file? For example please consider following:
\title{
This is a new function and this function will calculate the mean.
}
However I want to write it is this way:
\title{
This is a new function & and,
this function will
2013 Jan 01
1
Behavior or as.environment in function arguments/call (and force() behaviors...)
Happy 2013!
Can someone with more knowledge of edge case scoping/eval rules explain
what is happening below? Happens in all the versions of R I have on hand.
Behavior itself is confusing, but ?as.environment also provides no clue.
The term used in that doc is 'search list', which is ambiguous, but the
see also section mentions search(), so I would *think* that is what is
intended.