When I knit an .Rmd file it does not automatically display the final pdf file in a new window or in Viewer Pane. The PDF file is generated and can be opened fine if double clicked, but I want to be able to see it within RStudio. If I knit the same file to HTML it does show up in a new window or in Viewer Pane (tried with both settings.)
Any thoughts? Thank you.
R version 4.0.2 (2020-06-22) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.6 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib locale:  en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages:  stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached):  compiler_4.0.2 htmltools_0.5.0 tools_4.0.2 yaml_2.2.1 rmarkdown_2.4 knitr_1.30 xfun_0.18  digest_0.6.25 rlang_0.4.7 evaluate_0.14
Tested with this .Rmd:
--- title: "Sample Document" output: pdf_document --- This is some text.