From ripley at stats.ox.ac.uk  Mon Jun 12 17:54:31 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 12 Jun 2006 16:54:31 +0100 (BST)
Subject: [Rd] about integration of a  library into package creation
In-Reply-To: <448D864F.2070704@stats.uwo.ca>
References: <448D81F9.8040406@jouy.inra.fr> <448D864F.2070704@stats.uwo.ca>
Message-ID: <Pine.LNX.4.64.0606121652510.31903@gannet.stats.ox.ac.uk>

On Mon, 12 Jun 2006, Duncan Murdoch wrote:

> On 6/12/2006 11:02 AM, Nicolas Turenne wrote:
>> hello,
>>
>> i try to create a package , and i call a library in the namespace file
>> such as :  useDynLib(quadprog)
>>
>> after checking my directory with the command "rcmd check" (i am on
>> WindowsXP)
>> i get an error: package / namespace load failed
>> the path of the library is:     D:\R\library\quadprog
>> the path of the  building files is:   D:\RBuild\svcR
>> and the comand i use to compile is:  rcmd check D://RBuild//svcR
>>
>> i dont understand, it is a path problem about the dll related to the
>> library ?
>
> You didn't show the results of installing your package.  Did that work?
>
> Generally we advise to do a successful install before you try to run checks.

And also to load  the package, maybe with

rterm R_DEFAULT_PACKAGES=NULL
> library(svcR)

as these messages often indicate missing package dependencies.

>> * checking package subdirectories ... WARNING
>> Subdirectory 'src' contains no source files.
>> * checking R files for syntax errors ... OK
>> * checking R files for library.dynam ... OK
>> * checking S3 generic/method consistency ... WARNING
>> Erreur : le chargement du package / espace de noms a echoue' pour 'svcR'
>> Sequence d'appel :
>> 2: stop(gettextf("package/namespace load failed for '%s'",
>> libraryPkgName(packag
>> e)),
>>        call. = FALSE, domain = NA)
>> 1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose =
>> FALSE)
>> Execution arrete'e
>> See section 'Generic functions and methods' of the 'Writing R Extensions'
>> manual.
>> * checking replacement functions ... WARNING
>> Erreur : le chargement du package / espace de noms a echoue' pour 'svcR'
>> Sequence d'appel :
>> 2: stop(gettextf("package/namespace load failed for '%s'",
>> libraryPkgName(packag
>> e)),

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] about integration of a library into package creation
Prof Brian Ripley