Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use .S3method() rather than registerS3method() #392

Open
fkohrt opened this issue Jun 4, 2023 · 0 comments
Open

Use .S3method() rather than registerS3method() #392

fkohrt opened this issue Jun 4, 2023 · 0 comments

Comments

@fkohrt
Copy link
Contributor

fkohrt commented Jun 4, 2023

The cookbook currently encourages the use of registerS3method(). The documentation at help("registerS3method", "base") says, however, that it is “not intended to be called directly”. As an alternative, the method .S3method() can be used (see also Kurt Hornik: S3 Method Lookup).

registerS3method(
"knit_print", "data.frame", knit_print.data.frame,
envir = asNamespace("knitr")
)

See also #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant