Re: [Rd] [EXTERNAL] Re: RE: install_github and survival

2019-09-06 Thread Therneau, Terry M., Ph.D. via R-devel
Many thanks.  Something obvious is sometimes the hardest thing for me to see. Terry On 9/6/19 7:10 AM, Iñaki Ucar wrote: > On Fri, 6 Sep 2019 at 14:08, Therneau, Terry M., Ph.D. via R-devel > wrote: >> Yes, that is exactly the problem. The code found in the "config" script is >> never run. >>

Re: [Rd] Cryptic error message from namespaceExport

2019-09-06 Thread Thierry Onkelinx via R-devel
Dear Michael, my package has setOldClass("inla") and the NAMESPACE contains exportClasses(inla) and importFrom(INLA, inla.posterior.sample) the old version of INLA uses the S3 class "inla" but does not export it. the new version of INLA has setOldClass("inla") and the NAMESPACE contains exportCla

Re: [Rd] Cryptic error message from namespaceExport

2019-09-06 Thread Michael Lawrence via R-devel
Just to clarify, your package is exporting a class that is not defined? Or is it exporting a class that is defined by a dependency and then masked by setOldClass()? A simple reproducible example would help. On Fri, Sep 6, 2019 at 7:48 AM Thierry Onkelinx via R-devel wrote: > > Dear all, > > Today

[Rd] Cryptic error message from namespaceExport

2019-09-06 Thread Thierry Onkelinx via R-devel
Dear all, Today I got this error message (R 3.6.1) when installing my package: Error: package or namespace load failed for ‘inlatools’ in namespaceExport(ns, exports): undefined exports: .__C__inla My package was using setOldClass("inla") and exported the "inla" class via the NAMESPACE. It impo

Re: [Rd] [EXTERNAL] RE: install_github and survival

2019-09-06 Thread Iñaki Ucar
On Fri, 6 Sep 2019 at 14:08, Therneau, Terry M., Ph.D. via R-devel wrote: > > Yes, that is exactly the problem. The code found in the "config" script is > never run. > But why doesn't it get run? It should be called "configure", not "config". Iñaki

Re: [Rd] [EXTERNAL] RE: install_github and survival

2019-09-06 Thread Therneau, Terry M., Ph.D. via R-devel
Yes, that is exactly the problem.  The code found in the "config" script is never run.  But why doesn't it get run? On 9/6/19 5:44 AM, Georgi Boshnakov wrote: > I cloned therneau/survival and the installation failed since there is no > definition for exported function survfit(). > A file seems

Re: [Rd] install_github and survival

2019-09-06 Thread Georgi Boshnakov
I cloned therneau/survival and the installation failed since there is no definition for exported function survfit(). A file seems to be missing - there is survfit0() and survfit0.R but, compared to CRAN, no survfit.R. Georgi Boshnakov ---