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

Thierry Onkelinx thierry.onkelinx at inbo.be
Thu Apr 20 09:36:52 CEST 2017


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 Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2017-04-19 19:20 GMT+02:00 Roy Mendelssohn - NOAA Federal <
roy.mendelssohn at noaa.gov>:

> 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,  which
> does exactly what I want.
>
> The problem is I can't seem to find a way to make View() and knitr() work
> nice together in creating the vignette. Given the way View() works I doubt
> there is a way,  but any suggestions of how I can show what the user will
> see when the given the command in the package from within my vignette?
>
> Thanks,
>
> -Roy
>
>
>
> **********************
> "The contents of this message do not reflect any position of the U.S.
> Government or NOAA."
> **********************
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be expected"
> "the arc of the moral universe is long, but it bends toward justice" -MLK
> Jr.
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list