In R-Studio, I am running the code from this website: https://cran.r-project.org/web/packages/ztable/vignettes/heatmapTable.html, specifically the code below.
install.packages("ztable")
if(!require(devtools)) install.packages("devtools")
devtools::install_github("cardiomoon/ztable")
require(moonBook)
x=table(acs$Dx,acs$smoking)
library(ztable)
library(magrittr)
options(ztable.type="html")
z=ztable(x)
print(z,caption="Table 1. Basic Table")
I expected to see the table in the R-Studio Plot or Viewer pane, but instead the html text is printed in my Console pane. How can I view the table in R-Studio?


