Hi the list,

Back on an old problem. I thaught that was ok, but it is still not working on my computer. I write a toy package called packClassic. R CMD build packClassic works fine.
When I run R CMD CHECK packClassic, I get

--- 8< ---------------
* checking for unstated dependencies in R code ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
--- 8< ---------------

I gess that my configuration is correct since on an other package (a real one), I get no problem. The program is called "progClassic.R". Obviouly, is in a directorie called \packClassic\R\
The doc are in man, a data base is in data and some test are in tests

Here are the codes, the DESCRIPTION and NAMESPACE, then the file 00install.out and 00check.log :
I also put the package (since R CMD build works fine) on
 http:\\christophe.genolini.free.fr/packClassic_1.0.tar.gz
 http:\\christophe.genolini.free.fr/packClassic_1.0.zip

Does someone know what is wrong ?

Christophe



---- 8< --------- packClassic.R ----------------
######################################################
###                  ProgClassic.R                 ###
######################################################

userA      <- function(x){x+1}
privateA   <- function(x){x+2}
.userB     <- function(x){x+10}
.privateB  <- function(x){x+20}
userC      <- function(x){userA(privateA(x))}
privateC   <- function(x){.userB(.privateB(x))}


--- 8< ---------- testsPackClassic.R----------------------------
##########################################
### Nom du programme : testClassique.R ###
##########################################

load("../data/dn.Rda")
source("../R/progClassic.R")

userA(1)
privsateA(2)
.userB(3)
.privateB(4)
userC(5)
privateC(6)


--- 8< ------------ dn.Rda ----------------------
dn <- data.frame(age=c(1,2,4,8,12))
save(dn,file=dn.Rda")


---  8< ----------- DESCRIPTION -------------
Package:packClassic
Type: Package
Title: A (Not So) Short Introduction To S4
Version: 1.0
Date: 2008-07-16
Author: Christophe Genolini
Maintainer: <[EMAIL PROTECTED]>
Description: This package is a toy example used to illustrate the tutorial A (Not So) Short Introduction to S4.
License: GPL (>=2)
LazyLoad: ys


--- 8< --------------- NAMESPACE --------------
export("userA",
      ".userB",
      "userC"
)


--- 8< -------- man ----------------
dn.Rd
packClassic-internal.Rd
packClassic-package.Rd
userAC.Rd



--- 8< ------------- 00install.out ----------------------
installing R.css in C:/DOCUME~1/CHRIST~1/MESDOC~1/DOCSAR~1/R/TUTORI~1/PACKCL~1.RCH


---------- Making package packClassic ------------
 adding build stamp to DESCRIPTION
 installing NAMESPACE file and metadata
 installing R files
 installing data files
 installing man source files
 installing indices
 not zipping data
 installing help
>>> Building/Updating help pages for package 'packClassic'
    Formats: text html latex example chm
 dn                                text    html    latex   example
 packClassic-internal              text    html    latex
 packClassic-package               text    html    latex   example
 userAC                            text    html    latex   example
 adding MD5 sums

* DONE (packClassic)



--- 8< ----------------- 00check.log ------------------
* using log directory 'C:/Documents and Settings/Christophe/Mes documents/Docs articles polys résumés/R/tutorial S4/packClassic.Rcheck'
* using R version 2.7.1 (2008-06-23)
* using session charset: ISO8859-1
* checking for file 'packClassic/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'packClassic' version '1.0'
* checking package name space information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking whether package 'packClassic' can be installed ... OK
* checking package directory ... OK
* checking for portable file names ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking index information ... OK
* checking package subdirectories ... WARNING
Subdirectory 'data' contains no data sets.
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the name space can be loaded with stated dependencies ... OK
* checking for unstated dependencies in R code ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
See the information on DESCRIPTION files in the chapter 'Creating R
packages' of the 'Writing R Extensions' manual.
* checking S3 generic/method consistency ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
See section 'Generic functions and methods' of the 'Writing R Extensions'
manual.
* checking replacement functions ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
In R, the argument of a replacement function which corresponds to the right
hand side must be named 'value'.
* checking foreign function calls ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
See the chapter 'System and foreign language interfaces' of the 'Writing R
Extensions' manual.
* checking R code for possible problems ... NOTE
Erreur : aucun package nommé 'packClassic' n'existe
Séquence d'appel :
2: stop(txt, domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Exécution arrêtée
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
* checking Rd files ... OK
* checking Rd cross-references ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> Rd_aliases -> .find.package
Exécution arrêtée
* checking for missing documentation entries ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
All user-level objects in a package should have documentation entries.
See the chapter 'Writing R documentation files' in manual 'Writing R
Extensions'.
* checking for code/documentation mismatches ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
* checking Rd \usage sections ... WARNING
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
Functions with \usage entries need to have the appropriate \alias entries,
and all their arguments documented.
The \usage entries must correspond to syntactically valid R code.
See the chapter 'Writing R documentation files' in manual 'Writing R
Extensions'.
Erreur dans .find.package(package, lib.loc) :
 aucun package nommé 'packClassic' n'existe
Calls: <Anonymous> -> .find.package
Exécution arrêtée
The \usage entries for S3 methods should use the \method markup and not
their full name.
See the chapter 'Writing R documentation files' in manual 'Writing R
Extensions'.
* checking data for non-ASCII characters ... OK
* creating packClassic-Ex.R ... OK
* checking examples ... ERROR
Running examples in 'packClassic-Ex.R' failed.


--- 8< -----------------------
    c> I find the problem: the name of my base directory (the
    c> one that contain R, man and test) was not the same than
    c> the name of the package...

Aha!

    c> I thaught this was allowed, I guess I was wrong.

It has been documented to be allowed; and it has been, but
in some circumstances, R CMD check gave wrong warnings, as you
found.

I had found and fixed this buglet on May 22, both for R-devel
and R-patched (which will become R 2.7.1 ...)

Could you try 'R-patched' and confirm that the problem is
solved?

Regards,
Martin


    c> Christophe

    >>>>>>> "c" == cgenolin <[EMAIL PROTECTED]> on Tue, 03
    >>>>>>> Jun 2008 09:55:15 +0200 writes:
>> >> >> provide commented, minimal, self-contained,
    >> reproducible code.  >> Please do -- both --
>> c> Sorry... Usualy, I do... >> c> --- 8< ------------ userA <- function(x)x+1 privateA <-
    c> function(x)x+2 .userB <- function(x)x+10 .privateB <-
    c> function(x)x+20 userC <- function(x)userA(privateA(x))
    c> privateC <- function(x).userB(.privateB(x)) userD <-
    c> function(x)userA(.userB(x)) privateD <-
    c> function(x)privateA(.privateB(x)) --- 8< ------------
>> >> If I execute these in an empty R session, and do
    >> package.skeleton("EXpkg") system("R CMD check EXpkg")
>> >> I can NOT see the problem you describe below. Probably
    >> you'd rather should upload the <pkg>.tar.gz to a public
    >> place, to make your problem reproducible.
>> >> Martin >> >> >>>>>>> "c" == cgenolin <[EMAIL PROTECTED]> >>>>>>>
    >> on Tue, 03 Jun 2008 00:32:13 +0200 writes:
    >> >>
    c> Hi the list.  I got a probleme with R CMD check. I run a
    c> package.skeleton on a very simple code (four toy
    c> function, no probleme with the R CMD build). But on the R
    c> CMD check packClassique, I get :
    >> >>
    c> * checking for unstated dependencies in R code
    c> ... WARNING Erreur dans .find.package(package, lib.loc) :
    c> aucun package nommé 'packClassique' n'est trouvé Calls:
    c> <Anonymous> -> .find.package Excecution hated
    c> [French=Exécution arrêtée]
    >> >>
    c> See the information on DESCRIPTION files in the chapter
    c> 'Creating R packages' of the 'Writing R Extensions'
    c> manual.  * checking S3 generic/method consistency
    c> ... WARNING Erreur dans .find.package(package, lib.loc) :
    c> aucun package nommé 'packClassique' n'est trouvé Calls:
    c> <Anonymous> -> .find.package Exécution arrêtée
    >> >>
    c> And so on.
    >> >>
    c> Any idea on what is wrong ?
    >> >>
    >> >> No.
    >> >>
    c> Christophe
    >> >>
    c> ______________________________________________
    c> R-help@r-project.org mailing list
    c> https://stat.ethz.ch/mailman/listinfo/r-help
    >> >>
    c> PLEASE do read the posting guide
    >> >> http://www.R-project.org/posting-guide.html
    c> and provide commented, minimal, self-contained,
    c> reproducible code.
    >> >>
    >> >> Please do -- both --
    >> >>
    >> >> Martin
    >> >>
>> >> >> c> ----------------------------------------------------------------
    c> Ce message a ete envoye par IMP, grace a l'Universite
    c> Paris 10 Nanterre
>> >> >>
______________________________________________
    c> R-help@r-project.org mailing list
    c> https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do
    c> read the posting guide
    c> http://www.R-project.org/posting-guide.html and provide
    c> commented, minimal, self-contained, reproducible code.



______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to