Re: [Rd] about integration of a library into package creation

2006-06-14 Thread Nicolas Turenne
Hello, I dont understand such error coming from my installed package and dont appearing when i load the code source directly . The problem occur when the function capture the path value (FileIn), and so cannot find the file inside the directory. > findModelCluster(MetOpt, MetLab, Nu, q, K=1, G,

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Prof Brian Ripley
On Tue, 13 Jun 2006, Duncan Murdoch wrote: [...] > However, it appears that you can only import packages that have a namespace. > (I was unaware of this restriction; perhaps it's not really true, and the > error message means something else.) Yes, it is true but not properly documented. The d

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Nicolas Turenne
i solve the problem of masked GlobalEnv which is induced from conflicts with objects in memory removing objects before installing the package solves the warning message Nicolas __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Duncan Murdoch
Nicolas Turenne wrote: > it works fine if i avoid importFrom directive > thank you very much > > i have a last question > the R source code cannot admit gloval variable ? because i have global > variables > and i get the following message after loading my package by the command > 'library(svcR)':

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Nicolas Turenne
it works fine if i avoid importFrom directive thank you very much i have a last question the R source code cannot admit gloval variable ? because i have global variables and i get the following message after loading my package by the command 'library(svcR)': The following object(s) are masked _

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Duncan Murdoch
Nicolas Turenne wrote: > it looks strange... > > if i do only the compiling with the package "spdep" > and i avoid useDynLib, it compiles well, > but with the package "ade4" and "quadprog" it claims that > packages has no namespace > Erreur dans loadNamespace(ns, lib.loc) : le package 'quadprog' n'

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Nicolas Turenne
it looks strange... if i do only the compiling with the package "spdep" and i avoid useDynLib, it compiles well, but with the package "ade4" and "quadprog" it claims that packages has no namespace Erreur dans loadNamespace(ns, lib.loc) : le package 'quadprog' n'a pas d'espace de noms do you have

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Duncan Murdoch
Nicolas Turenne wrote: > i follow your recommendation writing this : > in the description file > Depends: R (>= 2.3), quadprog, ade4, spdep > Imports: quadprog, ade4, spdep > > in the namespace file > useDynLib(quadprog) > useDynLib(spdep) > useDynLib(ade4) > importFrom("ade4", "dist.dudi") > impor

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Uwe Ligges
Nicolas Turenne wrote: > i follow your recommendation writing this : > in the description file > Depends: R (>= 2.3), quadprog, ade4, spdep > Imports: quadprog, ade4, spdep > > in the namespace file > useDynLib(quadprog) > useDynLib(spdep) > useDynLib(ade4) > importFrom("ade4", "dist.dudi") > impo

Re: [Rd] about integration of a library into package creation

2006-06-13 Thread Nicolas Turenne
i follow your recommendation writing this : in the description file Depends: R (>= 2.3), quadprog, ade4, spdep Imports: quadprog, ade4, spdep in the namespace file useDynLib(quadprog) useDynLib(spdep) useDynLib(ade4) importFrom("ade4", "dist.dudi") importFrom("quadprog", "solve.QP") importFrom("ad

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Martin Maechler
> "UweL" == Uwe Ligges <[EMAIL PROTECTED]> > on Mon, 12 Jun 2006 19:48:04 +0200 writes: UweL> Nicolas Turenne wrote: >> your answer is correct after checking some doc >> but examples are rare >> >> when i write in the description file >> Depends: R (>= 2.3), qu

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Uwe Ligges
Nicolas Turenne wrote: > your answer is correct after checking some doc > but examples are rare > > when i write in the description file > Depends: R (>= 2.3), quadprog, ade4, spdep > > and in the namespcae file > > useDynLib(quadprog) > useDynLib(spdep) > useDynLib(ade4) > importFrom("dist.dud

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Nicolas Turenne
your answer is correct after checking some doc but examples are rare when i write in the description file Depends: R (>= 2.3), quadprog, ade4, spdep and in the namespcae file useDynLib(quadprog) useDynLib(spdep) useDynLib(ade4) importFrom("dist.dudi", "ade4") importFrom("solve.QP", "quadprog")

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Duncan Murdoch
On 6/12/2006 12:25 PM, Nicolas Turenne wrote: > in that sense, it is useless to load the library from R source code > making my package > which is supposed to include it and load it > > so if i understand the R philosophy it is not possible to load dll from > outside ; > the user has to load my

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Duncan Murdoch
On 6/12/2006 11:48 AM, Nicolas Turenne wrote: > > > > > >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. > > > >Duncan Murdoch > > D:\RBuild\svcR> rcmd build D://RBuild//svcR --for

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Nicolas Turenne
in that sense, it is useless to load the library from R source code making my package which is supposed to include it and load it so if i understand the R philosophy it is not possible to load dll from outside ; the user has to load my package and manually has to load the necessary libraries e

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Prof Brian Ripley
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)

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Nicolas Turenne
> > >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. > >Duncan Murdoch D:\RBuild\svcR> rcmd build D://RBuild//svcR --force --docs='all' --binary hence i obtain the file svcR_1.0.zip and

Re: [Rd] about integration of a library into package creation

2006-06-12 Thread Duncan Murdoch
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

[Rd] about integration of a library into package creation

2006-06-12 Thread Nicolas Turenne
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 pat