brodieG / diffobj

Compare R Objects with a Diff
229 stars 12 forks source link

Figure out how to get Rstudio Autocomplete To Read Default Method Docs #148

Closed brodieG closed 4 years ago

brodieG commented 4 years ago

From #147:

I got stymied there by relying on argument auto-complete in RStudio -- it only returns options for the default method, so I didn't see the ANY signature arguments to tinker around with.

brodieG commented 4 years ago

It could also look at the doc file more deeply. For example, diffPrint documents both the generic and the ANY method in the same page. It wouldn't be a stretch to use both when providing auto-complete options.

MichaelChirico commented 4 years ago

I deleted my earlier comment since it was in error. Actually RStudio does seem to pick up some method docs (I tried d <- as.IDate(Sys.Date()); as.POSIXct(d, <TAB>). Maybe it's just for S3?

brodieG commented 4 years ago

Possibly an Rstudio bug. Closing until there is evidence it isn't a bug there.

https://github.com/rstudio/rstudio/issues/7851