[R] about R CMD check

2005-03-10 Thread xt_wang
hello, everybody,

I create a package by myself named var on Linux system. I attach a C code
which uses R_ext/Lapack.h in directory src. But when I carry out  R CMD
check var, it shows

  wxt0124()
Error in .C(wxt1221, PACKAGE = var) : C function name not in DLL for package
var
Execution halted

Could you tell me what is the problem?

Maggie


[EMAIL PROTECTED] myrpackages]$ R CMD check var
* checking for working latex ... OK
* using log directory '/home/credsim/src/myrpackages/var.Rcheck'
* checking for file 'var/DESCRIPTION' ... OK
* checking if this is a source package ... OK

* Installing *source* package 'var' ...
** libs
gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES -mieee-fp 
-fPIC  -O2 -g -march=i386 -mcpu=i686 -c wxt1221.c -o wxt1221.o
wxt1221.c: In function `Matrix_A_12':
wxt1221.c:774: warning: passing arg 3 of `dpotrf_' from incompatible pointer
type
wxt1221.c:775: warning: passing arg 4 of `dpotrs_' from incompatible pointer
type
wxt1221.c: In function `Matrix_A_1':
wxt1221.c:1038: warning: passing arg 3 of `dpotrf_' from incompatible pointer
type
wxt1221.c:1039: warning: passing arg 4 of `dpotrs_' from incompatible pointer
type
wxt1221.c: In function `Matrix_A_2':
wxt1221.c:1290: warning: passing arg 3 of `dpotrf_' from incompatible pointer
type
wxt1221.c:1291: warning: passing arg 4 of `dpotrs_' from incompatible pointer
type
gcc -shared -L/usr/local/lib -o var.so wxt1221.o -L/usr/lib/R/bin -lRlapack 
-L/usr/local/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2
-L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../.. -lfrtbegin -lg2c -lm
-lgcc_s
** R
** help
Warning: \alias{wxt0124} already in wxt0124.Rd -- skipping the one in wxt1221.Rd
  Building/Updating help pages for package 'var'
 Formats: text html latex example
  wxt0124   texthtmllatex   example
  wxt1221   texthtmllatex   example
* DONE (var)

* checking package directory ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking DESCRIPTION meta-information ... OK
* checking package dependencies ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for syntax errors ... OK
* checking R files for library.dynam ... OK
* checking S3 generic/method consistency ... OK
* checking for replacement functions with final arg not named 'value' ... OK
* checking foreign function calls ... OK
* checking Rd files ... OK
* checking for missing documentation entries ... WARNING
Undocumented code objects:
  b
All user-level objects in a package should have documentation entries.
See chapter 'Writing R documentation files' in manual 'Writing R
Extensions'.
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking for CRLF line endings in C sources/headers ... OK
* creating var-Ex.R ... OK
* checking examples ... ERROR
Running examples in var-Ex.R failed.
The error most likely occurred in:

 ### * wxt0124

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

 ### Name: wxt0124
 ### Title: Estimation of Optimal Variance Components in CCC Model
 ### Aliases: wxt0124
 ### Keywords: array
   wxt0124()
Error in .C(wxt1221, PACKAGE = var) : C function name not in DLL for package
var
Execution halted

 ### ** Examples


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


RE: [R] about R CMD check

2005-03-10 Thread Liaw, Andy
Please show us at least the prototype of the C function(s) being called, and
the .C call in the R code.

Just to make sure:  The first argument to .C() should be the name of the C
function, not the name of the C source file.

Andy

 From: [EMAIL PROTECTED]
 
 hello, everybody,
 
 I create a package by myself named var on Linux system. I 
 attach a C code
 which uses R_ext/Lapack.h in directory src. But when I 
 carry out  R CMD
 check var, it shows
 
   wxt0124()
 Error in .C(wxt1221, PACKAGE = var) : C function name not 
 in DLL for package
 var
 Execution halted
 
 Could you tell me what is the problem?
 
 Maggie
 
 
 [EMAIL PROTECTED] myrpackages]$ R CMD check var
 * checking for working latex ... OK
 * using log directory '/home/credsim/src/myrpackages/var.Rcheck'
 * checking for file 'var/DESCRIPTION' ... OK
 * checking if this is a source package ... OK
 
 * Installing *source* package 'var' ...
 ** libs
 gcc -I/usr/lib/R/include  -I/usr/local/include 
 -D__NO_MATH_INLINES -mieee-fp 
 -fPIC  -O2 -g -march=i386 -mcpu=i686 -c wxt1221.c -o wxt1221.o
 wxt1221.c: In function `Matrix_A_12':
 wxt1221.c:774: warning: passing arg 3 of `dpotrf_' from 
 incompatible pointer
 type
 wxt1221.c:775: warning: passing arg 4 of `dpotrs_' from 
 incompatible pointer
 type
 wxt1221.c: In function `Matrix_A_1':
 wxt1221.c:1038: warning: passing arg 3 of `dpotrf_' from 
 incompatible pointer
 type
 wxt1221.c:1039: warning: passing arg 4 of `dpotrs_' from 
 incompatible pointer
 type
 wxt1221.c: In function `Matrix_A_2':
 wxt1221.c:1290: warning: passing arg 3 of `dpotrf_' from 
 incompatible pointer
 type
 wxt1221.c:1291: warning: passing arg 4 of `dpotrs_' from 
 incompatible pointer
 type
 gcc -shared -L/usr/local/lib -o var.so wxt1221.o 
 -L/usr/lib/R/bin -lRlapack 
 -L/usr/local/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2
 -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../.. 
 -lfrtbegin -lg2c -lm
 -lgcc_s
 ** R
 ** help
 Warning: \alias{wxt0124} already in wxt0124.Rd -- skipping 
 the one in wxt1221.Rd
   Building/Updating help pages for package 'var'
  Formats: text html latex example
   wxt0124   texthtmllatex   example
   wxt1221   texthtmllatex   example
 * DONE (var)
 
 * checking package directory ... OK
 * checking for portable file names ... OK
 * checking for sufficient/correct file permissions ... OK
 * checking DESCRIPTION meta-information ... OK
 * checking package dependencies ... OK
 * checking index information ... OK
 * checking package subdirectories ... OK
 * checking R files for syntax errors ... OK
 * checking R files for library.dynam ... OK
 * checking S3 generic/method consistency ... OK
 * checking for replacement functions with final arg not named 
 'value' ... OK
 * checking foreign function calls ... OK
 * checking Rd files ... OK
 * checking for missing documentation entries ... WARNING
 Undocumented code objects:
   b
 All user-level objects in a package should have documentation entries.
 See chapter 'Writing R documentation files' in manual 'Writing R
 Extensions'.
 * checking for code/documentation mismatches ... OK
 * checking Rd \usage sections ... OK
 * checking for CRLF line endings in C sources/headers ... OK
 * creating var-Ex.R ... OK
 * checking examples ... ERROR
 Running examples in var-Ex.R failed.
 The error most likely occurred in:
 
  ### * wxt0124
 
  flush(stderr()); flush(stdout())
 
  ### Name: wxt0124
  ### Title: Estimation of Optimal Variance Components in CCC Model
  ### Aliases: wxt0124
  ### Keywords: array
wxt0124()
 Error in .C(wxt1221, PACKAGE = var) : C function name not 
 in DLL for package
 var
 Execution halted
 
  ### ** Examples
 
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html
 
 


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html