Re: [R-pkg-devel] Interplay between knitr() and View()

2017-04-22 Thread Barry Rowlingson
On Thu, Apr 20, 2017 at 3:41 PM, Roy Mendelssohn - NOAA Federal wrote: > What I liked about View() is often the table is quite big, and View() > provides scroll bars and nice headers that make it easy to look over the > results. When I run View(iris) I don't get scrollbars, and the table is tr

Re: [R-pkg-devel] Interplay between knitr() and View()

2017-04-20 Thread Roy Mendelssohn - NOAA Federal
Thanks all for the suggestions. If I have screenshots in the Vignette, where should I put the picture files - in the vignette folder (this is so it will work when submitted to CRAN)? As for why display the result, just a design decision. Sometimes it makes sense to display right away the resul

Re: [R-pkg-devel] Interplay between knitr() and View()

2017-04-20 Thread David Hugh-Jones
Two questions: 1. If your package definitely needs to call View(), and you want to explain how that will look, then why not show one or more screenshots in your documentation? 2. Why does your package need to call View? Why can't it return the metadata as a data frame, and let the user do what he

Re: [R-pkg-devel] Interplay between knitr() and View()

2017-04-20 Thread Thierry Onkelinx
Dear Roy, In case you create a HTML vignette you can use datatable() from the DT package. That creates a dynamic table in the output. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biomet

Re: [R-pkg-devel] Interplay between knitr() and View()

2017-04-19 Thread Barry Rowlingson
I think that exactly what View() shows will depend on your operating system. On my Linux box, I get a very plain spreadsheet with everything in fixed-width font, thin black boxes, and a highlighted cursor box. Numbers are left-justified. There's no scroll bars. I don't know if it looks the same in

[R-pkg-devel] Interplay between knitr() and View()

2017-04-19 Thread Roy Mendelssohn - NOAA Federal
Hi All: My package allows the user to search for information about the data available, and the information is returned in a dataframe. I had long been looking for a nice way to display the results (the datasets' metadata), and wasn't too happy with anything until I tried the View() command,