Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread Richard M. Heiberger
gt; \hline > > \end{tabular}\end{center} > > \end{table} > > > > While I’m wanting an equation: > > > > $$a = b$$ > > > > Thanks, > > > > Bill > > > > From: Richard M. Heiberger > Sent: Monday, February 17, 2020 10:31 AM > T

Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread Jeff Newmiller
I don't think it is possible to avoid exporting S3 methods from a package and still have the class behave as intended. Use a regular function if name encapsulation is important to you. On February 17, 2020 8:33:30 AM PST, b...@denney.ws wrote: >Thanks for the pointer! Adding >"S3method(knit_pri

Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread bill
Thanks for the pointer! Adding "S3method(knit_print_helper_formula,name)" to the NAMESPACE seems to have fixed it. For others who come across this, in roxygen2 parlance, that means using: #' @method knit_print_helper_formula name #' @export Even though the actual export is not desired. Thanks

Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread bill
. Heiberger Sent: Monday, February 17, 2020 10:31 AM To: b...@denney.ws Cc: r-package-devel@r-project.org Subject: Re: [R-pkg-devel] Private S3 Method not Found Please be consistent with the latex() function in the Hmisc package. For example, for an array x, latex (x) produces a complete latex

Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread Richard M. Heiberger
Please be consistent with the latex() function in the Hmisc package. For example, for an array x, latex (x) produces a complete latex table environment. See the ?latex helpfile for details. Rich On Mon, Feb 17, 2020 at 10:07 wrote: > Hello, > > > > I'm working on a function in a package that

Re: [R-pkg-devel] Private S3 Method not Found

2020-02-17 Thread Duncan Murdoch
On 17/02/2020 10:05 a.m., b...@denney.ws wrote: Hello, I'm working on a function in a package that will provide an exported function that will convert formula to LaTeX equations. For that, it recursively goes through the formula converting objects of class "formula", "call", "name", and "(