Hi there! I created a table with the package reactable but i'am not sure how to add a title to it.
I have a few examples in Github where they add one, but i can't reach the same results.
This is my code:
library(reactable)
library(htmltools)
example<- reactable(data.frame(country=c("argentina","brazil"),
value=c(1,2)
))
div(class = "table",
div(class = "title", "Top CRAN Packages of 2019"),
example
)
print(example)
This is an example where they add a title to a table among other things that i used to try to add my title: