similar to: package.sk​eleton() does not create 'data' folder

Displaying 20 results from an estimated 600 matches similar to: "package.sk​eleton() does not create 'data' folder"

2011 Jun 08
0
package.skeleton() does not create 'data' folder
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 function and another is data. Here they are: fn1 <-
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
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
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
2006 Oct 25
1
Excel files
Hi every one, I am very very new to R and solicit your kind help I am trying to use my excel files in R. I used the Xlread/write package and able to load the a sample file into console. Then I tried to find the mean of a column vector for example. But I could not proceed Here is the problem rfile <- "Trial1.xls" > read.xls( rfile, colNames = TRUE, sheet = 1, type =
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
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 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
2007 Feb 20
1
bootstrapping Levene's test
Hello all, I am low down on the learning curve of R but so far I have had little trouble using most of the packages. However, recently I have run into a wall when it comes to bootstrapping a Levene's test (from the car package) and thought you might be able to help. I have not been able to find R examples for the "boot" package where the test statistic specifically uses a
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(
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"),
2013 Jan 08
2
plot residuals per factor
Dear R-users, I want to plot residuals vs fitted for multiple groups with ggplot2. I try this code, but unsuccessful. library("plyr") models<-dlply(dat1,"d",function(df) mod<-lm(y~x,data=df) ggplot(models,aes(.fitted,.resid), color=factor(d))+ geom_hline(yintercept=0,col="white",size=2)+ geom_point()+ geom_smooth(se=F) -- --- Catalin-Constantin ROIBU
2013 Apr 25
0
Reading data from a text file conditionally skipping lines
Hi, It would be better to give an example. If your dataset is like the one attached: con<-file("Trial1.txt") ?Lines1<- readLines(con) ?close(con) #If the data you wanted to extract is numeric and the header and footer are characters, dat1<-read.table(text=Lines1[-grep("[A-Za-z]",Lines1)],sep="\t",header=FALSE) dat1 #?? V1 V2 V3 V4 V5 #1? 38 43 39 44 45 #2? 39
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.
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
2009 Nov 25
1
problem in building an R package
i am trying to build an R package and submit to CRAN. i am using - package.skeleton(name="xxzz", code_files = "H:\xxzz.R") to build package xxzz. --------------------------- The code above generates 'xxzz' folder. It seems that I have to manually edit the files generated in xxzz folder (to add titles, authors, etc) -------------------------- But when I re-run -
2011 Jun 09
1
Permission denied in Windows 7
I'm using package.skeleton() windows 7, 64 bit. When I try to specify the code_files package_skeleton(....code_files = " some directory") I get a warning that that the connection cannot be opened and I get a Permissions denied error. I'm running R as admin and I've given everybody full permissions on the folder. What am I missing [[alternative HTML version deleted]]
2012 Dec 24
2
whats wrong in my codes???
Dear R family,i am trying to plot and save, simultaneously, about 1000. the name of each plot is contained in "names" file. when i run this loop, i get an error. "Error in plot.new() : Unable to open file 'C:/R/SAVEHERE/myplot_Tak.jpg' for writing". could you please correct the mistake in the loop? >names<-(names(sp)) >for(a in seq_along(names)){ >mypath