Dasonk / docstring

Provides docstring like functionality to R functions without requiring the need to create a package.
57 stars 6 forks source link

Add option to choose 'type' #5

Closed Dasonk closed 7 years ago

Dasonk commented 7 years ago

Make it possible to choose the type of help file displayed. Right now only html is displayed. That's because displaying the text version in RStudio was wonky.

Dasonk commented 7 years ago

.Call(.rs.routines$rs_previewRd, generated_help_file)

will display a Rd file in the help pane in RStudio. So if I can detect if the user is using RStudio we can use that method. Otherwise we just resort to browseURL for html.

Dasonk commented 7 years ago

You're an idiot. rstudioapi::previewRd is obviously the more acceptable way to do this...

Dasonk commented 7 years ago

I'm fine with only having html + RStudio Pane support for now.