[R] options("defaultPackages") was not found [C1]
shaun.hughes at sgcib.com
shaun.hughes at sgcib.com
Fri Dec 14 16:05:05 CET 2007
hello, i'm having a problem creating a custom package.
i've found other posts on the web that describe a similar problem but i
haven't found any solution. please advise.
the error in the build process is
checking DESCRIPTION meta-information ... ERROR
During startup - Warning messages:
' in: library(package, lib.loc = lib.loc, character.only = TRUE, logical =
TRUE,
in options("defaultPackages") was not found
my r source (in the file dlog.r)
dlog <- function(X,h=1) {
list(res=(as.matrix(diff(log(X),lag = h, differences = 1))), res2=h)
}
1. in RGui
source("C:\\shaun\\projects\\rpackagecreation\\dlog.r")
then
package.skeleton(name="DLOGPackage", list=ls(), .GlobalEnv,
"C:\\shaun\\projects\\rpackagecreation", TRUE)
2. in the R install\bin directory i ran
rcmd build --force --binary --no-vignettes --docs=none
c:/shaun/projects/rpackagecreation/DLOGPackage
and i get the following message
* checking for file
'c:/shaun/projects/rpackagecreation/DLOGPackage/DESCRIPTION' ... OK
* preparing 'c:/shaun/projects/rpackagecreation/DLOGPackage':
* checking DESCRIPTION meta-information ... ERROR
During startup - Warning messages:
' in: library(package, lib.loc = lib.loc, character.only = TRUE, logical =
TRUE,
in options("defaultPackages") was not found
i modified the DESCRIPTION file as follows
Package: DLOGPackage
Type: Package
Title: A test package
Version: 1.0
Date: 2007-12-14
Author: Shaun HUGHES
Maintainer: Shaun HUGHES <shaun.hughes at sgcib.com>
Description: Just a test custom package
Depends: R (>= 2.5.1)
License: GPL (Version 3 or later)
Version : R version 2.5.1 (2007-06-27)
OS Windows XP SP2
Cordialement,
--------------------------------------------------
Shaun HUGHES
ITEC/GED/DAI/RTM
+33 (0)1 58 98 27 54
--------------------------------------------------
*************************************************************************
This message and any attachments (the "message") are con...{{dropped:10}}
More information about the R-help
mailing list