search for: code_file

Displaying 20 results from an estimated 39 matches for "code_file".

Did you mean: code_files
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 code_file=3Dc("riri/titi.R",&qu...
2008 Mar 30
1
package.skeleton.S4
...Still with this two issues, it is possible to use package.skeleton.S4 in the following way: - first run package.skeleton (in the classical way, on a file or in the console). This creates the directories and the files - then run package.skeleton.S4. It has to be done * using the code_files option (since dumpMethod does not exists) * providing the list of the class (since sys.source does not compile setClass) * using the same path than package.skeleton At this three conditions, package.skeleton.S4 will : - modify the DESCRIPTION package, - run promptClass on the class...
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 des fichiers d'aide ... Termin?. Les ?tapes suivantes sont d?crites dans './packClassic4/Read-and-delete...
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 - package.skeleton(name=&...
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...
2011 Dec 16
2
package.skeleton()
...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 Rgui, but when I type the line above nothing happens. Thank you very much. Ben [[alternative HTML version deleted]]
2011 Jun 09
1
package.sk​eleton() does not create 'data' folder
...wever 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 the trial.r file, there are 2 objects, one is a function and another is data. Here they are: fn1 <- Vectorize(function(x,y,z) { ? ? ? ? ? ? ? ? ? ? ? ?return(x + y +z) ? ? ? ? ? ? ? ?}, SIMPLIFY = TRUE) Data <- rnorm(20) However my problem is th...
2012 Oct 13
0
installation of R (2.14.1 and 2.15.1) fails due to [reg-packages.Rout] Error
...'setMethod("show", "foo",', + ' function(object) cat("I am a \\"foo\\"\\n"))'), + tmp) > if(file.exists("myTst")) unlink("myTst", recursive=TRUE) > package.skeleton("myTst", code_files = tmp)# with a file name warning Creating directories ... Creating DESCRIPTION ... Creating NAMESPACE ... Creating Read-and-delete-me ... Copying code files ... Making help files ... Done. Further steps are described in './myTst/Read-and-delete-me'. Warning message: In package.skeleton(&qu...
2008 Apr 13
1
R 2.7 package.skeleton
...le essai.r ------------- setClass( Class="ClusterizLongData", representation=representation( clusterizS="list" ), prototype=prototype( clusterizS=list(c2=list(),c3=list()) ) ) --- 8< --------------------------------- package.skeleton("kmt",code_files=c("essai.r")) Erreur dans .prototype(...) : l'argument "list" est manquant, avec aucune valeur par d?faut [approximative translation : Error in .prototype(...) : the argument "list" is missing, with no default value ] Christophe --------------------------...
2009 Jan 30
2
error message with roxygen
Hello useRs, I'm trying to use the Roxygen package. Here my code file : #' A packge to check Roxygen's sanity #' @name helloRoxygen-package #' @docType package NA And my R code to generate the package : library(roxygen) package.skeleton("helloRoxygen", code_files = "roxy.r", force = T) roxygenize("helloRoxygen", "helloRoxygen", copy.package = F, unlink.target = F, overwrite = T) I obtain this error message : Writing helloRoxygen-package to helloRoxygen/man/helloRoxygen-package.Rd Writing namespace directives to helloRoxygen/N...
2009 Oct 26
2
What is the most efficient practice to develop an R package?
..., shall I always source('linmod.R') to test it. Once the code in linmod.R is finalized, then I run the following two steps? I'm wondering what people usually do when developing packages. 1. Run the following command in R to create the package package.skeleton(name="linmod", code_files="linmod.R") 2. Run the following command in shell to install R CMD INSTALL -l /path/to/library linmod
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 <- Vectorize(function(x,y,z) { return(x + y +z) }, SIMPLIFY = TRUE) Data <- rnorm(20) However my problem is that package.skeleton() does not cr...
2003 Sep 16
2
couldn't find function "setClass"
Hello ... With a new checkout of R-devel (last update was 2003-09-11) we are having a problem (it seems to be happening to all of us here on a few different machines) where during install/check/etc when the 'save image' happens (in packages using 'save image'): ** save image Error: couldn't find function "setClass" Execution halted This is for all packages that
2013 Jun 04
0
bug in package.skeleton(), and doc typo.
...39;) } 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. According to the documentation: >The arguments list, environment, and code_files provide alternative ways to initialize the package. > If code_files is supplied, the files so named will be sourced to form the environment, then used to generate the package skeleton. >Otherwise list defaults to the non-hidden files in environment (those whose name does not start with .), b...
2004 Oct 05
1
R 2.0.0: problem: installing --with-package-versions
Hello R developers, installing R 2.0.0 from source on a Linux Debian system (gcc 3.2.2) - which worked just fine - I encountered the following problem when trying to update/install packages with the option --with-package-versions: example: RUnit 0.4.0 (also on CRAN) R20 CMD INSTALL -l /mnt/local/R/R-2.0.x-libs-EpiR --with-package-versions RUnit_0.4.0.tar.gz or after untaring R20 CMD INSTALL
2012 Apr 03
1
Package seems to be present but library don't find it
...quot; sur la console. #' @title la fonction showHello() showHello <-function(){ cat("Hello World!\n") } I use the following procedure to get the tar: # set the working directory where the file is located > setwd("...") > package.skeleton("HelloWorld",code_files=c("HelloWorld.R")) # to generate .rd files > library("roxygen2") > roxygenize("HelloWorld",copy.package=FALSE) > system("R CMD build '/Users/marcgirondot/Documents/Espace de travail R/Phenology/Source fit/Essai_package/HelloWorld'") *...
2009 Jul 09
1
Bug in package.skeleton, R 2.9.0?
...em 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"), sep="/") > package.skeleton(name="dk", force=TRUE, code_files=files) Creating directories ... Creating DESCRIPTION ... Creating Read-and-delete-me ... Copying code files ... Making help files ... Done. Further steps are described in './dk/Read-and-delete-me'. > Now, everything seems fine, but changes to files in me codebase folder, doesn't...
2020 Feb 18
2
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
...sUnion('xyab', c('xy', 'ab'))", "setGeneric('f', function(object, ...) standardGeneric('f'))", "setMethod('f', 'xyab', function(object, ...) print('hi!'))" ), con = fn ) package.skeleton(code_files = "codefile.R") system("rm -rf anRpackage/man") system("R CMD INSTALL anRpackage") library(anRpackage) ## fails in R 3.6.2, but works in R 3.5.0 f(new("a")) Next, if a fresh R 3.6.2 session is started and I execute the following at the prompt, method dispat...
2010 May 10
1
Rd files must have a non-empty \title
Hello everybody, I'm trying to install a package I have built. This package contains three scripts with various functions (S3 as well as S4 classes) I run at first the package.skeleton command with: > package.skeleton("affyAnalysis", namespace=TRUE, code_files =c("defS3.R", "defS4.R", "qc.R")) affyAnalysis is the name of the supposed package and the three script are listed at the end. results: Creating directories ... Creating DESCRIPTION ... Creating NAMESPACE ... Creating Read-and-delete-me ... Copying code files ... Mak...
2020 Feb 19
2
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
...; > "setGeneric('f', function(object, ...) standardGeneric('f'))", > > "setMethod('f', 'xyab', function(object, ...) print('hi!'))" > > ), > > con = fn > > ) > > package.skeleton(code_files = "codefile.R") > > system("rm -rf anRpackage/man") > > system("R CMD INSTALL anRpackage") > > library(anRpackage) > > ## fails in R 3.6.2, but works in R 3.5.0 > > f(new("a")) > > > > Next, if a fresh R 3.6.2 sessio...