Re: [R-pkg-devel] vapply and More Complex FUN.VALUE

2023-09-27 Thread Uwe Ligges
On 27.09.2023 09:35, Ivan Krylov wrote: On Tue, 26 Sep 2023 20:00:03 + Dario Strbenac wrote: Is it possible to somehow specify more complex return types, such as a data.frame with specific columns? Probably not with vapply(). It only looks at the equivalent of typeof(), verifies the l

Re: [R-pkg-devel] vapply and More Complex FUN.VALUE

2023-09-27 Thread Ivan Krylov
On Tue, 26 Sep 2023 20:00:03 + Dario Strbenac wrote: > Is it possible to somehow specify more complex return types, such as > a data.frame with specific columns? Probably not with vapply(). It only looks at the equivalent of typeof(), verifies the length() (which for data.frames is the numbe

[R-pkg-devel] vapply and More Complex FUN.VALUE

2023-09-26 Thread Dario Strbenac
Good day, Is it possible to somehow specify more complex return types, such as a data.frame with specific columns? -- Dario Strbenac University of Sydney Camperdown NSW 2050 Australia __ R-package-devel@r-project.org