Hello, i input a code chunk in my rmd which includes the 'View()' function. The code chunk is below:
library(ggplot2)
library(palmerpenguins)
data(penguins)
View(penguins)
I attempted to knit the rmd file and it failed, returning the error output below:
Error in .External2(C_dataviewer, x, title) : unable to start data viewer
Calls: ... withVisible -> eval_with_user_handlers -> eval -> eval -> View
Execution halted
Please help
You can't use view()
with knitted documents because there is no data viewer panel in output documents. It is only meant to be used interactively within RStudio.
3 Likes
Thanks.
Please is there a way around this? I am trying to offer a preview of the data in a tabular form on the html output file.
Data frame's knit as DataTables on HTML by default, but you can also render a DataTable explicitly to have better options control.
https://rstudio.github.io/DT/
2 Likes
This has proven very useful. Thanks @andresrcs
system
Closed
July 22, 2022, 7:14pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.