Use data.table subsetting to avoid copy of large objects#180
Use data.table subsetting to avoid copy of large objects#180flying-sheep merged 6 commits intoIRkernel:mainfrom
Conversation
|
Hi, thanks! Does a S3 method have to be exported in order to exist? I’d prefer not to add a public API that’s unrelated to |
|
I guess it depends on what you mean by "exported" -- as you see in the NAMESPACE, we've registered an S3 method, so in some sense that's "public+exported". OTOH:
I think the approach I took here is natural; depending on your concerns, we could also fake S3 dispatch ourselves and keep everything private like: partition_from_parts = function(...) {
if (inherits(., "data.table")) return(partition_from_parts.data.table(...))
partition_from_parts.default(...)
} |
|
Ah, I see, there’s a separate Looks like |
|
Yea, a very unfortunate feature of {roxygen2} that the same |
|
Great, thank you! |
Closes #179
This also includes #178 since it's logically related and I noticed the former while working on this.
Since I'm working on a fork I don't know of a way to make the diff cleaner (usually I'd put the merge target as #178, but that would only work as a PR to my fork).