Skip to content

How to track outdated methods? #1273

Closed Answered by wlandau
CorradoLanera asked this question in Help
Discussion options

You must be logged in to vote

targets operates by static code analysis, and there is no reliable static way to detect what's going on with S3 methods. For example, is data.frame() an ordinary function, or is data() an S3 generic with a method for class "frame"? It's impossible to tell just from a static analysis of which global variables are used where, and even if it were, static analysis cannot tell which method will apply to a given object. S3 methods and other OOP are usually for package development, and it would not be feasible for targets to specifically accommodate them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CorradoLanera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants