Re: [R] creation package

2010-08-26 Thread Gábor Csárdi
Dear Anderson,

please see
http://lists.nongnu.org/archive/html/igraph-help/2007-07/msg00010.html
for the solution of the 'postscript font not included' problem.

Best,
Gabor

On Wed, Aug 25, 2010 at 11:50 PM, anderson nuel anderson@gmail.com wrote:
 Dear r-help,

 I took your advice into consideration and i tried to solve my errors. But ,
 when I use the command R CMD check namepackage, I find an error in this file
 C:/Rpack/namepackage.Rcheck/00check.txt :


 * using log directory 'C:/Rpack/namepackge.Rcheck'
 * using R version 2.10.1 (2009-12-14)
 * using session charset: ISO8859-1
 * checking for file 'namepackge/DESCRIPTION' ... OK
 * checking extension type ... Package
 * this is package 'namepackge' version '1.0'
 * checking package name space information ... OK
 * checking package dependencies ... OK
 * checking if this is a source package ... OK
 * checking for executable files ... OK
 * checking whether package 'namepackge' 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 ... OK
 * 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 ... OK
 * checking S3 generic/method consistency ... OK
 * checking replacement functions ... OK
 * checking foreign function calls ... OK
 * checking R code for possible problems ... OK
 * checking Rd files ... OK
 * checking Rd metadata ... OK
 * checking Rd cross-references ... OK
 * checking for missing documentation entries ... OK
 * checking for code/documentation mismatches ... OK
 * checking Rd \usage sections ... OK
 * checking data for non-ASCII characters ... OK
 * checking examples ... ERROR
 Running examples in 'namepackge-Ex.R' failed.
 The error most likely occurred in:

 ### * RT

 flush(stderr()); flush(stdout())

 ### Name: RT
 ### Title: modeling
 ### Aliases: RT
 ### Keywords: programming models

 ### ** Examples

   data(d)
   data - d
 RT(t(d), c(2,2,2), c(1,2,3),c(V1,V2,V3))
 Error in text.default(x, y, labels = labels, col = label.color, family =
 label.family,  :
  family 'serif' not included in PostScript device
 Calls: RT- plot - plot.igraph - text - text.default
 Execution halted
 Best Regards,

[...]

-- 
Gabor Csardi gabor.csa...@unil.ch     UNIL DGM

__
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.


Re: [R] creation package

2010-08-25 Thread anderson nuel
Dear r-help,

I took your advice into consideration and i tried to solve my errors. But ,
when I use the command R CMD check namepackage, I find an error in this file
C:/Rpack/namepackage.Rcheck/00check.txt :


* using log directory 'C:/Rpack/namepackge.Rcheck'
* using R version 2.10.1 (2009-12-14)
* using session charset: ISO8859-1
* checking for file 'namepackge/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'namepackge' version '1.0'
* checking package name space information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'namepackge' 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 ... OK
* 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 ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking data for non-ASCII characters ... OK
* checking examples ... ERROR
Running examples in 'namepackge-Ex.R' failed.
The error most likely occurred in:

 ### * RT

 flush(stderr()); flush(stdout())

 ### Name: RT
 ### Title: modeling
 ### Aliases: RT
 ### Keywords: programming models

 ### ** Examples

   data(d)
   data - d
 RT(t(d), c(2,2,2), c(1,2,3),c(V1,V2,V3))
Error in text.default(x, y, labels = labels, col = label.color, family =
label.family,  :
  family 'serif' not included in PostScript device
Calls: RT- plot - plot.igraph - text - text.default
Execution halted
Best Regards,






2010/8/19, Michael Dewey i...@aghmed.fsnet.co.uk:

 At 13:57 19/08/2010, anderson nuel wrote:

 Dear r-help,

 I don't use namespace.


 Well, as I said in my original reply, it would be a good idea to do so.


 How can I make asia available?


 Without knowing where asia is that is quite a tough call. How do you access
 it when you test your code before you try to package it?


 I think my problem in creating the package in this: I have a singleglobal
 function (RT) in my package, but inside RT I need to call several other
 function( comb l,earn_comb, nchoo). When I used package.sekeleton, Iput in
 lists all the functions(comb l,earn_comb, nchoo,RT),but in the 'man' I
 left
 only namepackage-package.Rd and RT.Rd. When I did do this, is it true??


 Best Regards


 2010/8/18, Michael Dewey mailto:i...@aghmed.fsnet.co.uk
 i...@aghmed.fsnet.co.uk:

 At 10:27 18/08/2010, anderson nuel wrote:
 Dear r-help,

 No, I find errors in the file C:/Rp/namepackage.Rcheck/00check.txt :

 * using log directory 'C:/Rpackage/namepackage.Rcheck'
 * using R version 2.10.1 (2009-12-14)
 * using session charset: ISO8859-1
 * checking for file 'namepackage/DESCRIPTION' ... OK
 * checking extension type ... Package
 * this is package 'namepackage' version '1.0'
 * checking package dependencies ... OK
 * checking if this is a source package ... OK
 * checking for executable files ... OK
 * checking whether package 'namepackage' 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 ... OK
 * 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 for unstated dependencies in R code ... OK
 * checking S3 generic/method consistency ... OK
 * checking replacement functions ... OK
 * checking foreign function calls ... OK
 * checking R code for possible problems ... NOTE
 comb: no visible global function definition for 'copy_bloc'
 comb: no visible global function definition for 'copy_interl'
 * checking Rd files ... OK
 * checking Rd metadata ... OK
 * checking Rd cross-references ... OK
 * checking for missing documentation entries ... WARNING
 Undocumented code objects:
  comb learn_comb nchoo
 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 

Re: [R] creation package

2010-08-19 Thread anderson nuel
Dear r-help,

I don't use namespace.

How can I make asia available?

I think my problem in creating the package in this: I have a singleglobal
function (RT) in my package, but inside RT I need to call several other
function( comb l,earn_comb, nchoo). When I used package.sekeleton, Iput in
lists all the functions(comb l,earn_comb, nchoo,RT),but in the 'man' I left
only namepackage-package.Rd and RT.Rd. When I did do this, is it true??


Best Regards


2010/8/18, Michael Dewey i...@aghmed.fsnet.co.uk:

 At 10:27 18/08/2010, anderson nuel wrote:

 Dear r-help,

 No, I find errors in the file C:/Rp/namepackage.Rcheck/00check.txt :

 * using log directory 'C:/Rpackage/namepackage.Rcheck'
 * using R version 2.10.1 (2009-12-14)
 * using session charset: ISO8859-1
 * checking for file 'namepackage/DESCRIPTION' ... OK
 * checking extension type ... Package
 * this is package 'namepackage' version '1.0'
 * checking package dependencies ... OK
 * checking if this is a source package ... OK
 * checking for executable files ... OK
 * checking whether package 'namepackage' 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 ... OK
 * 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 for unstated dependencies in R code ... OK
 * checking S3 generic/method consistency ... OK
 * checking replacement functions ... OK
 * checking foreign function calls ... OK
 * checking R code for possible problems ... NOTE
 comb: no visible global function definition for 'copy_bloc'
 comb: no visible global function definition for 'copy_interl'
 * checking Rd files ... OK
 * checking Rd metadata ... OK
 * checking Rd cross-references ... OK
 * checking for missing documentation entries ... WARNING
 Undocumented code objects:
  comb learn_comb nchoo
 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 ... OK
 * checking Rd \usage sections ... OK
 * checking examples ... ERROR
 Running examples in 'namepackage-Ex.R' failed.
 The error most likely occurred in:
  ### * RT
 
  flush(stderr()); flush(stdout())
 
  ### Name: RT
  ### Title: RT
  ### Aliases: RT
 
  ### ** Examples
 
  data(asia)
 Warning in data(asia) : data set 'asia' not found
  RT(asia, c(2,2,2), c(1,2,3),c(a,b,c ))
 Error in nrow(data) : object 'x' not found
 Calls: RT - array - nrow
 Execution halted


 I think my problem in creating the package in this: I have a singleglobal
 function (RT) in my package, but inside RT I need to call several other
 function( comb l,earn_comb, nchoo). When I used package.sekeleton, Iput in
 lists all the functions(comb l,earn_comb, nchoo,RT),but in the 'man' I
 left
 only namepackage-package.Rd and RT.Rd. When I did do this, is it true??


 Are you using a namespace?
 If not I think it may help you with the warnings about documentation.

 The other warning tells you R cannot find asia. You need to make it
 available.


  Best Regards,











 2010/8/16, Uwe Ligges lig...@statistik.tu-dortmund.de:
 
 
 
  On 16.08.2010 18:52, anderson nuel wrote:
 
  Dear r-help,
 
  the file C:/Rp/namepackage.Rcheck/00install.out :
 
  * install options are ' --no-html'
  * installing *source* package 'namepackage' ...
  ** R
  ** preparing package for lazy loading
  ** help
  *** installing help indices
  ** building package indices ...
  ** MD5 sums
  * DONE (namepackage)
 
 
 
  So it was successful.
 
  Uwe
 
 
 
  Best Regards,
 
 
 
 
 
  2010/8/14, Uwe Liggeslig...@statistik.tu-dortmund.de:
 
 
 
 
  On 14.08.2010 11:21, anderson nuel wrote:
 
  Dear r-help,
 
  I run R CMD INSTALL :
 
  c:\RpR CMD INSTALL namepackage
 
  *installing to library'c:/PROGRA~1/R/R-210~1-1/library'
  *installing *source* 'namepackage'...
  **R
  **preparing package for lazy loading
  **help
  Avis:./man/namepackage-package.Rd:25:'' inatttendue
  **installing help indices
  **building package indices
  **MD5sums
  *DONEnamepackage
 
  best
 
 
 
  OK, but strange that checking the package fails now in its
 installation
  checks. Can you send us the file
  C:/Rp/namepackage.Rcheck/00install.out
  please.
 
  Uwe Ligges
 
 
 
 
 
  2010/8/13, Uwe Liggeslig...@statistik.tu-dortmund.de:
 
 
  In my previous maiul I asked you to run R CMD INSTALL at first
 (rather
  than
  R CMD check).
 
  You could also look into the mentioned file
  C:/Rp/namepackage.Rcheck/00install.out
 
  But we really need that file to understand what is going on.
 
  Uwe Ligges
 
 
 
 
 
 
  On 13.08.2010 15:12, anderson nuel wrote:
 
  Dear r-help,
 
  I try this 

Re: [R] creation package

2010-08-19 Thread Michael Dewey

At 13:57 19/08/2010, anderson nuel wrote:

Dear r-help,

I don't use namespace.


Well, as I said in my original reply, it would be a good idea to do so.



How can I make asia available?


Without knowing where asia is that is quite a tough call. How do you 
access it when you test your code before you try to package it?




I think my problem in creating the package in this: I have a singleglobal
function (RT) in my package, but inside RT I need to call several other
function( comb l,earn_comb, nchoo). When I used package.sekeleton, Iput in
lists all the functions(comb l,earn_comb, nchoo,RT),but in the 'man' I left
only namepackage-package.Rd and RT.Rd. When I did do this, is it true??


Best Regards


2010/8/18, Michael Dewey 
mailto:i...@aghmed.fsnet.co.uki...@aghmed.fsnet.co.uk:

At 10:27 18/08/2010, anderson nuel wrote:
Dear r-help,

No, I find errors in the file C:/Rp/namepackage.Rcheck/00check.txt :

* using log directory 'C:/Rpackage/namepackage.Rcheck'
* using R version 2.10.1 (2009-12-14)
* using session charset: ISO8859-1
* checking for file 'namepackage/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'namepackage' version '1.0'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'namepackage' 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 ... OK
* 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 for unstated dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
comb: no visible global function definition for 'copy_bloc'
comb: no visible global function definition for 'copy_interl'
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... WARNING
Undocumented code objects:
 comb learn_comb nchoo
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 ... OK
* checking Rd \usage sections ... OK
* checking examples ... ERROR
Running examples in 'namepackage-Ex.R' failed.
The error most likely occurred in:
 ### * RT

 flush(stderr()); flush(stdout())

 ### Name: RT
 ### Title: RT
 ### Aliases: RT

 ### ** Examples

 data(asia)
Warning in data(asia) : data set 'asia' not found
 RT(asia, c(2,2,2), c(1,2,3),c(a,b,c ))
Error in nrow(data) : object 'x' not found
Calls: RT - array - nrow
Execution halted


I think my problem in creating the package in this: I have a singleglobal
function (RT) in my package, but inside RT I need to call several other
function( comb l,earn_comb, nchoo). When I used package.sekeleton, Iput in
lists all the functions(comb l,earn_comb, nchoo,RT),but in the 'man' I left
only namepackage-package.Rd and RT.Rd. When I did do this, is it true??


Are you using a namespace?
If not I think it may help you with the warnings about documentation.

The other warning tells you R cannot find asia. You need to make it available.


Best Regards,











2010/8/16, Uwe Ligges 
mailto:lig...@statistik.tu-dortmund.delig...@statistik.tu-dortmund.de:




 On 16.08.2010 18:52, anderson nuel wrote:

 Dear r-help,

 the file C:/Rp/namepackage.Rcheck/00install.out :

 * install options are ' --no-html'
 * installing *source* package 'namepackage' ...
 ** R
 ** preparing package for lazy loading
 ** help
 *** installing help indices
 ** building package indices ...
 ** MD5 sums
 * DONE (namepackage)



 So it was successful.

 Uwe



 Best Regards,





 2010/8/14, Uwe 
Liggesmailto:lig...@statistik.tu-dortmund.delig...@statistik.tu-dortmund.de:





 On 14.08.2010 11:21, anderson nuel wrote:

 Dear r-help,

 I run R CMD INSTALL :

 c:\RpR CMD INSTALL namepackage

 *installing to library'c:/PROGRA~1/R/R-210~1-1/library'
 *installing *source* 'namepackage'...
 **R
 **preparing package for lazy loading
 **help
 Avis:./man/namepackage-package.Rd:25:'' inatttendue
 **installing help indices
 **building package indices
 **MD5sums
 *DONEnamepackage

 best



 OK, but strange that checking the package fails now in its installation
 checks. Can you send us the file
 C:/Rp/namepackage.Rcheck/00install.out
 please.

 Uwe Ligges





 2010/8/13, Uwe 
Liggesmailto:lig...@statistik.tu-dortmund.delig...@statistik.tu-dortmund.de:



 In my previous maiul I asked you to run R CMD INSTALL at first (rather
 than
 R CMD check).

 

Re: [R] creation package

2010-08-18 Thread anderson nuel
Dear r-help,

No, I find errors in the file C:/Rp/namepackage.Rcheck/00check.txt :

* using log directory 'C:/Rpackage/namepackage.Rcheck'
* using R version 2.10.1 (2009-12-14)
* using session charset: ISO8859-1
* checking for file 'namepackage/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'namepackage' version '1.0'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'namepackage' 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 ... OK
* 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 for unstated dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
comb: no visible global function definition for 'copy_bloc'
comb: no visible global function definition for 'copy_interl'
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... WARNING
Undocumented code objects:
  comb learn_comb nchoo
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 ... OK
* checking Rd \usage sections ... OK
* checking examples ... ERROR
Running examples in 'namepackage-Ex.R' failed.
The error most likely occurred in:
 ### * RT

 flush(stderr()); flush(stdout())

 ### Name: RT
 ### Title: RT
 ### Aliases: RT

 ### ** Examples

 data(asia)
Warning in data(asia) : data set 'asia' not found
 RT(asia, c(2,2,2), c(1,2,3),c(a,b,c ))
Error in nrow(data) : object 'x' not found
Calls: RT - array - nrow
Execution halted


I think my problem in creating the package in this: I have a singleglobal
function (RT) in my package, but inside RT I need to call several other
function( comb l,earn_comb, nchoo). When I used package.sekeleton, Iput in
lists all the functions(comb l,earn_comb, nchoo,RT),but in the 'man' I left
only namepackage-package.Rd and RT.Rd. When I did do this, is it true??


Best Regards,











2010/8/16, Uwe Ligges lig...@statistik.tu-dortmund.de:



 On 16.08.2010 18:52, anderson nuel wrote:

 Dear r-help,

 the file C:/Rp/namepackage.Rcheck/00install.out :

 * install options are ' --no-html'
 * installing *source* package 'namepackage' ...
 ** R
 ** preparing package for lazy loading
 ** help
 *** installing help indices
 ** building package indices ...
 ** MD5 sums
 * DONE (namepackage)



 So it was successful.

 Uwe



 Best Regards,





 2010/8/14, Uwe Liggeslig...@statistik.tu-dortmund.de:




 On 14.08.2010 11:21, anderson nuel wrote:

 Dear r-help,

 I run R CMD INSTALL :

 c:\RpR CMD INSTALL namepackage

 *installing to library'c:/PROGRA~1/R/R-210~1-1/library'
 *installing *source* 'namepackage'...
 **R
 **preparing package for lazy loading
 **help
 Avis:./man/namepackage-package.Rd:25:'' inatttendue
 **installing help indices
 **building package indices
 **MD5sums
 *DONEnamepackage

 best



 OK, but strange that checking the package fails now in its installation
 checks. Can you send us the file
 C:/Rp/namepackage.Rcheck/00install.out
 please.

 Uwe Ligges





 2010/8/13, Uwe Liggeslig...@statistik.tu-dortmund.de:


 In my previous maiul I asked you to run R CMD INSTALL at first (rather
 than
 R CMD check).

 You could also look into the mentioned file
 C:/Rp/namepackage.Rcheck/00install.out

 But we really need that file to understand what is going on.

 Uwe Ligges






 On 13.08.2010 15:12, anderson nuel wrote:

 Dear r-help,

 I try this command R CMD INSTALL,but still there are errors.
 I look into the installation log file in the namepackage.Rcheck :
 * using log directory 'C:/Rp/namepackage.Rcheck'
 * using R version 2.10.1 (2009-12-14)
 * using session charset: ISO8859-1
 * checking for file 'namepackage/DESCRIPTION' ... OK
 * checking extension type ... Package
 * this is package 'namepackage' version '1.0'
 * checking package dependencies ... OK
 * checking if this is a source package ... OK
 * checking for executable files ... OK
 * checking whether package 'namepackage' can be installed ... ERROR
 Installation failed.
 See 'C:/Rp/namepackage.Rcheck/00install.out' for details.
  From That , I do not know where is the error
 I have only one function RT, but I need several other functions within
 the RT function, while
 using package.skeleton() I put in the function list seulemnt RT or any
 other functions, or I 

Re: [R] creation package

2010-08-18 Thread Michael Dewey

At 10:27 18/08/2010, anderson nuel wrote:

Dear r-help,

No, I find errors in the file C:/Rp/namepackage.Rcheck/00check.txt :

* using log directory 'C:/Rpackage/namepackage.Rcheck'
* using R version 2.10.1 (2009-12-14)
* using session charset: ISO8859-1
* checking for file 'namepackage/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'namepackage' version '1.0'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'namepackage' 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 ... OK
* 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 for unstated dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
comb: no visible global function definition for 'copy_bloc'
comb: no visible global function definition for 'copy_interl'
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... WARNING
Undocumented code objects:
  comb learn_comb nchoo
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 ... OK
* checking Rd \usage sections ... OK
* checking examples ... ERROR
Running examples in 'namepackage-Ex.R' failed.
The error most likely occurred in:
 ### * RT

 flush(stderr()); flush(stdout())

 ### Name: RT
 ### Title: RT
 ### Aliases: RT

 ### ** Examples

 data(asia)
Warning in data(asia) : data set 'asia' not found
 RT(asia, c(2,2,2), c(1,2,3),c(a,b,c ))
Error in nrow(data) : object 'x' not found
Calls: RT - array - nrow
Execution halted


I think my problem in creating the package in this: I have a singleglobal
function (RT) in my package, but inside RT I need to call several other
function( comb l,earn_comb, nchoo). When I used package.sekeleton, Iput in
lists all the functions(comb l,earn_comb, nchoo,RT),but in the 'man' I left
only namepackage-package.Rd and RT.Rd. When I did do this, is it true??


Are you using a namespace?
If not I think it may help you with the warnings about documentation.

The other warning tells you R cannot find asia. You need to make it available.



Best Regards,











2010/8/16, Uwe Ligges lig...@statistik.tu-dortmund.de:



 On 16.08.2010 18:52, anderson nuel wrote:

 Dear r-help,

 the file C:/Rp/namepackage.Rcheck/00install.out :

 * install options are ' --no-html'
 * installing *source* package 'namepackage' ...
 ** R
 ** preparing package for lazy loading
 ** help
 *** installing help indices
 ** building package indices ...
 ** MD5 sums
 * DONE (namepackage)



 So it was successful.

 Uwe



 Best Regards,





 2010/8/14, Uwe Liggeslig...@statistik.tu-dortmund.de:




 On 14.08.2010 11:21, anderson nuel wrote:

 Dear r-help,

 I run R CMD INSTALL :

 c:\RpR CMD INSTALL namepackage

 *installing to library'c:/PROGRA~1/R/R-210~1-1/library'
 *installing *source* 'namepackage'...
 **R
 **preparing package for lazy loading
 **help
 Avis:./man/namepackage-package.Rd:25:'' inatttendue
 **installing help indices
 **building package indices
 **MD5sums
 *DONEnamepackage

 best



 OK, but strange that checking the package fails now in its installation
 checks. Can you send us the file
 C:/Rp/namepackage.Rcheck/00install.out
 please.

 Uwe Ligges





 2010/8/13, Uwe Liggeslig...@statistik.tu-dortmund.de:


 In my previous maiul I asked you to run R CMD INSTALL at first (rather
 than
 R CMD check).

 You could also look into the mentioned file
 C:/Rp/namepackage.Rcheck/00install.out

 But we really need that file to understand what is going on.

 Uwe Ligges






 On 13.08.2010 15:12, anderson nuel wrote:

 Dear r-help,

 I try this command R CMD INSTALL,but still there are errors.
 I look into the installation log file in the namepackage.Rcheck :
 * using log directory 'C:/Rp/namepackage.Rcheck'
 * using R version 2.10.1 (2009-12-14)
 * using session charset: ISO8859-1
 * checking for file 'namepackage/DESCRIPTION' ... OK
 * checking extension type ... Package
 * this is package 'namepackage' version '1.0'
 * checking package dependencies ... OK
 * checking if this is a source package ... OK
 * checking for executable files ... OK
 * checking whether package 'namepackage' can be installed ... ERROR
 Installation failed.
 See 'C:/Rp/namepackage.Rcheck/00install.out' for details.
  From That , I do 

Re: [R] creation package

2010-08-14 Thread anderson nuel
Dear r-help,

I run R CMD INSTALL :

c:\RpR CMD INSTALL namepackage

*installing to library'c:/PROGRA~1/R/R-210~1-1/library'
*installing *source* 'namepackage'...
**R
**preparing package for lazy loading
**help
Avis:./man/namepackage-package.Rd:25:'' inatttendue
**installing help indices
**building package indices
**MD5sums
*DONEnamepackage

best



2010/8/13, Uwe Ligges lig...@statistik.tu-dortmund.de:

 In my previous maiul I asked you to run R CMD INSTALL at first (rather than
 R CMD check).

 You could also look into the mentioned file
 C:/Rp/namepackage.Rcheck/00install.out

 But we really need that file to understand what is going on.

 Uwe Ligges






 On 13.08.2010 15:12, anderson nuel wrote:

 Dear r-help,
 I try this command R CMD INSTALL,but still there are errors.
 I look into the installation log file in the namepackage.Rcheck :
 * using log directory 'C:/Rp/namepackage.Rcheck'
 * using R version 2.10.1 (2009-12-14)
 * using session charset: ISO8859-1
 * checking for file 'namepackage/DESCRIPTION' ... OK
 * checking extension type ... Package
 * this is package 'namepackage' version '1.0'
 * checking package dependencies ... OK
 * checking if this is a source package ... OK
 * checking for executable files ... OK
 * checking whether package 'namepackage' can be installed ... ERROR
 Installation failed.
 See 'C:/Rp/namepackage.Rcheck/00install.out' for details.
  From That , I do not know where is the error
 I have only one function RT, but I need several other functions within
 the RT function, while
 using package.skeleton() I put in the function list seulemnt RT or any
 other functions, or I shall all functions in the same page??
 Best



 2010/7/31, Uwe Ligges lig...@statistik.tu-dortmund.de
 mailto:lig...@statistik.tu-dortmund.de:



On 30.07.2010 15:44, anderson nuel wrote:

Dear r-help,

I create a package. When I installed this package (I use this
command : R
CMD check namepackage),I find an error: * checking whether package
'namepackage' can be installed ... ERROR
Installation failed.



Could you help me to find solution  for this error.




Well, either take a look into the installation log file in the
namepackage.Rcheck directory or start a bit more slowly by just
trying to install without a check in the first step by R CMD INSTALL.

Without seeing the installation log, we cannot help either.

Best,
Uwe Ligges


Best Regards

[[alternative HTML version deleted]]

__
R-help@r-project.org mailto: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.htmlhttp://www.r-project.org/posting-guide.html
http://www.r-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




[[alternative HTML version deleted]]

__
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.


Re: [R] creation package

2010-08-14 Thread Uwe Ligges



On 14.08.2010 11:21, anderson nuel wrote:

Dear r-help,

I run R CMD INSTALL :

c:\RpR CMD INSTALL namepackage

*installing to library'c:/PROGRA~1/R/R-210~1-1/library'
*installing *source* 'namepackage'...
**R
**preparing package for lazy loading
**help
Avis:./man/namepackage-package.Rd:25:'' inatttendue
**installing help indices
**building package indices
**MD5sums
*DONEnamepackage

best



OK, but strange that checking the package fails now in its installation 
checks. Can you send us the file

C:/Rp/namepackage.Rcheck/00install.out
please.

Uwe Ligges





2010/8/13, Uwe Liggeslig...@statistik.tu-dortmund.de:


In my previous maiul I asked you to run R CMD INSTALL at first (rather than
R CMD check).

You could also look into the mentioned file
C:/Rp/namepackage.Rcheck/00install.out

But we really need that file to understand what is going on.

Uwe Ligges






On 13.08.2010 15:12, anderson nuel wrote:


Dear r-help,
I try this command R CMD INSTALL,but still there are errors.
I look into the installation log file in the namepackage.Rcheck :
* using log directory 'C:/Rp/namepackage.Rcheck'
* using R version 2.10.1 (2009-12-14)
* using session charset: ISO8859-1
* checking for file 'namepackage/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'namepackage' version '1.0'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'namepackage' can be installed ... ERROR
Installation failed.
See 'C:/Rp/namepackage.Rcheck/00install.out' for details.
  From That , I do not know where is the error
I have only one function RT, but I need several other functions within
the RT function, while
using package.skeleton() I put in the function list seulemnt RT or any
other functions, or I shall all functions in the same page??
Best



2010/7/31, Uwe Liggeslig...@statistik.tu-dortmund.de
mailto:lig...@statistik.tu-dortmund.de:



On 30.07.2010 15:44, anderson nuel wrote:

Dear r-help,

I create a package. When I installed this package (I use this
command : R
CMD check namepackage),I find an error: * checking whether package
'namepackage' can be installed ... ERROR
Installation failed.



Could you help me to find solution  for this error.




Well, either take a look into the installation log file in the
namepackage.Rcheck directory or start a bit more slowly by just
trying to install without a check in the first step by R CMD INSTALL.

Without seeing the installation log, we cannot help either.

Best,
Uwe Ligges


Best Regards

[[alternative HTML version deleted]]

__
R-help@r-project.orgmailto: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.htmlhttp://www.r-project.org/posting-guide.html
http://www.r-project.org/posting-guide.html
and provide 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.


Re: [R] creation package

2010-08-13 Thread Uwe Ligges
In my previous maiul I asked you to run R CMD INSTALL at first (rather 
than R CMD check).


You could also look into the mentioned file 
C:/Rp/namepackage.Rcheck/00install.out


But we really need that file to understand what is going on.

Uwe Ligges






On 13.08.2010 15:12, anderson nuel wrote:

Dear r-help,
I try this command R CMD INSTALL,but still there are errors.
I look into the installation log file in the namepackage.Rcheck :
* using log directory 'C:/Rp/namepackage.Rcheck'
* using R version 2.10.1 (2009-12-14)
* using session charset: ISO8859-1
* checking for file 'namepackage/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'namepackage' version '1.0'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'namepackage' can be installed ... ERROR
Installation failed.
See 'C:/Rp/namepackage.Rcheck/00install.out' for details.
 From That , I do not know where is the error
I have only one function RT, but I need several other functions within
the RT function, while
using package.skeleton() I put in the function list seulemnt RT or any
other functions, or I shall all functions in the same page??
Best



2010/7/31, Uwe Ligges lig...@statistik.tu-dortmund.de
mailto:lig...@statistik.tu-dortmund.de:



On 30.07.2010 15:44, anderson nuel wrote:

Dear r-help,

I create a package. When I installed this package (I use this
command : R
CMD check namepackage),I find an error: * checking whether package
'namepackage' can be installed ... ERROR
Installation failed.



Could you help me to find solution  for this error.




Well, either take a look into the installation log file in the
namepackage.Rcheck directory or start a bit more slowly by just
trying to install without a check in the first step by R CMD INSTALL.

Without seeing the installation log, we cannot help either.

Best,
Uwe Ligges


Best Regards

[[alternative HTML version deleted]]

__
R-help@r-project.org mailto: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
http://www.r-project.org/posting-guide.html
and provide 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.


Re: [R] creation package

2010-08-13 Thread anderson nuel
Dear r-help,

I try this command R CMD INSTALL,but still there are errors.

I look into the installation log file in the namepackage.Rcheck :

* using log directory 'C:/Rp/namepackage.Rcheck'
* using R version 2.10.1 (2009-12-14)
* using session charset: ISO8859-1
* checking for file 'namepackage/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'namepackage' version '1.0'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for executable files ... OK
* checking whether package 'namepackage' can be installed ... ERROR
Installation failed.
See 'C:/Rp/namepackage.Rcheck/00install.out' for details.

From That , I do not know where is the error

I have only one function RT, but I need several other functions within the
RT function, while
using package.skeleton() I put in the function list seulemnt RT or any other
functions, or I shall all functions in the same page??

Best




2010/7/31, Uwe Ligges lig...@statistik.tu-dortmund.de:



 On 30.07.2010 15:44, anderson nuel wrote:

 Dear r-help,

 I create a package. When I installed this package (I use this command : R
 CMD check namepackage),I find an error: * checking whether package
 'namepackage' can be installed ... ERROR
 Installation failed.

 

 Could you help me to find solution  for this error.




 Well, either take a look into the installation log file in the
 namepackage.Rcheck directory or start a bit more slowly by just trying to
 install without a check in the first step by R CMD INSTALL.

 Without seeing the installation log, we cannot help either.

 Best,
 Uwe Ligges


 Best Regards

[[alternative HTML version deleted]]

 __
 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.htmlhttp://www.r-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.



[[alternative HTML version deleted]]

__
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.


Re: [R] creation package

2010-07-31 Thread Uwe Ligges



On 30.07.2010 15:44, anderson nuel wrote:

Dear r-help,

I create a package. When I installed this package (I use this command : R
CMD check namepackage),I find an error: * checking whether package
'namepackage' can be installed ... ERROR
Installation failed.



Could you help me to find solution  for this error.




Well, either take a look into the installation log file in the 
namepackage.Rcheck directory or start a bit more slowly by just trying 
to install without a check in the first step by R CMD INSTALL.


Without seeing the installation log, we cannot help either.

Best,
Uwe Ligges



Best Regards

[[alternative HTML version deleted]]

__
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.


__
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.