Displaying 20 results from an estimated 8000 matches similar to: "problem in building an R package"
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
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 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",
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
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"),
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
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
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(
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
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 <-
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.
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
2009 Nov 06
3
which data structure to choose to keep multile objects?
I have a function called nnmf which takes in one matrix and returns two
matrices. for example,
> X
[,1] [,2] [,3] [,4]
[1,] 1 4 7 10
[2,] 2 5 8 11
[3,] 3 6 9 12
> z=nnmf(X,2)
> z$W
[,1] [,2]
[1,] 0.8645422 0.6643681
[2,] 1.7411863 0.5377504
[3,] 2.6179287 0.4111063
> z$H
[,1] [,2] [,3] [,4]
[1,] 1.14299486
2020 Feb 26
1
Possible Regression in setClassUnion between 3.5.0 and 3.6.0
Okay - that makes sense and thanks for looking into this! As an aside, from
R-devel's perspective would you say methods are stabilizing again or do you
foresee a lot of changes coming in the 4.* series?
On Tue, Feb 25, 2020 at 3:39 PM Michael Lawrence via R-devel <
r-devel at r-project.org> wrote:
> This seems to work as expected (returning "hi!") in R-devel, but there