Displaying 20 results from an estimated 10000 matches similar to: "package.skeleton()"
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
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
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"),
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 -
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 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]]
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",
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 <-
2009 Oct 26
2
What is the most efficient practice to develop an R package?
I am reading Section 5 and 6 of
http://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf
It seems that I have to do the following two steps in order to make an
R package. But when I am testing these package, these two steps will
run many times, which may take a lot of time. So when I still develop
the package, shall I always source('linmod.R') to test it. Once the
code in
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.
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
2012 Apr 03
1
Package seems to be present but library don't find it
Hi,
I try to make my first package? The HelloWorld.R file is:
#### HelloWorld.R ####
#' showHello est une fonction R permettant d'afficher le message
#' "Hello World!" 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
2020 Feb 18
2
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
I am trying to create a class union of class unions to facilitate method
dispatch. When I execute code in the global environment, everything acts as
expected, however when I put the same code in the context of a package,
selectMethod can no longer find the correct method. This first block below
puts the code in the context of a package:
fn <- "codefile.R"
writeLines(
c(
2007 May 28
1
How to correctly write a package?
I am writing a package.
Please, study the sequence of my actions below, and comment, what's
incorrect.
The package contains pure R code.
1. At the one level up from the package directory, from the system command
prompt:
R CMD build --binary ac9
This produces the file ac9_0.1.zip (The package name is ac9, and the
package's DESCRIPTION file says its version is 0.1)
2. Then I run Rgui in
2012 Oct 13
0
installation of R (2.14.1 and 2.15.1) fails due to [reg-packages.Rout] Error
Hello,
I'm trying to install R from sources on two Linux machines (both with Suse 12.2):
1.
> uname -a
Linux cs-wsok 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26 09:36:26 UTC
2012 (641c197) x86_64 x86_64 x86_64 GNU/Linux
2.
> uname -a
Linux csltok.swansea.ac.uk 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26
09:36:26 UTC 2012 (641c197) x86_64 x86_64 x86_64 GNU/Linux
I am trying version
2012 May 02
1
Forestplot question
Hi,
I'm trying to build a Forest Plot using the second and fourth columns in
the table (test.csv) below. My code is the following:
curated <- data.frame("test.csv")
tmp <- curated$coef
tmp1 <- curated$se_coef
plt <- metaplot(tmp, tmp1, xlim = c(-.45, .45))
I keep getting the following error at the last line and am not sure why:
Error in if (is.na(lower[i] + upper[i]))
2020 Feb 19
2
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
Thanks, I'll look into it.
On Tue, Feb 18, 2020 at 8:32 AM Ezra Tucker <ezztucker at gmail.com> wrote:
>
> Hi Robert,
>
> This looks like a bug to me (tested in R 3.6.2 on Windows), f(new("a"))
> should return "hi!". I'll add that this DOES work properly in 3.6.1
> which leads me to suspect this could be due to the subtle change in the
> way