Show presentation slide in RStudio - r

In an upcoming project I'd like to guide my audience through a presentation as well as showing some code in RStudio. To use the screen space optimally I'd like to show the presentation (a PDF) in the environment area of RStudio (top right corner). This way I could display some code on the left, the presentation in the top right and plots in the bottom right corner.
Does an RStudio plugin exist to accomplish this?

File > New File > R Markdown
New your file
Select PDF from the Default Output format
A minimal working example will be populated with the Motor Trend Cars data frame.
Run any single 'Chunk' with the tiny green arrow to make your plots generate under the code
Additional viewing options in preview pane

Related

RStudio - Scrolling in output of str_view_all

I recently started using the stringr-package in RStudio. I really like the str_view_all function. Currently I'm working with a large dataset of strings and like to look at the matches. str_view_all works alright, but sadly I'm not able to scroll through the output (on the right). When extending the viewport for the output more lines are shown.
Is there a way to scroll through this output (I can't further extend the viewport at some point)?
There is no way to scroll through the output in RStudio's Viewer tab: https://github.com/tidyverse/stringr/issues/127
Try the "View in new window" shortcut on top of the Viewer, it allows you to see the full output in a web browser.

RMarkdown in RStudio - is it possible to completely hide LaTeX preview

I'm starting to use RMarkdown for documents with a lot of equations. RStudio has a nice feature of previewing latex when I'm writing it which I like, however after I've written the equation I don't need it taking up space in my text editor area, see image:
There is the option to "hide it" by clicking the two arrows in the corner of the preview but even after this it still takes up loads of space and clutters my text editor area, especially since my text is filled with many equations. So my questions is first if it's possible to keep the live preview when I'm writing the equation and then completely hide it or if that's not possible, completely disable this feature of latex preview?

How do you see your viewer items in R studio?

How can I see previous tables that I generated in the viewer instead of only the most recent thing that I ran? For example if I've run several tables and changed one or two things and I wanted to be able to compare them side by side, how do I see them both? I'm thinking about how I can scroll through an SPSS output file.
I'm not sure if this is a code thing or a settings thing. Opening a new window doesn't seem to do anything. Refreshing the viewer doesn't seem to change anything.
I can put things in the viewer no problem using view() or expss_output_viewer or out="viewer".
I can only seem to get it to display the most recent table I ran.
Click the arrows in the upper left of the viewer pane to see previously plotted tables.
Image of viewer pane with arrows highlighted
Using flextable
flextable(mtcars)
Using expss
expss_output_viewer()
as.etable(mtcars)

Oracle reports output like HTML table from single database cell

Is it possible to create HTML-like table in Oracle Reports (output format: .rdf) based on database cell content ?
Report is big, with lot of content, from which one should be formatted cell content.
What is currently:
current data displayed in ready report - database cell content
What is requested:
what should be displayed
Using HTML formatting in this case doesn't work,
https://docs.oracle.com/cd/E15523_01/bi.1111/b32122/orbr_concepts2008.htm#RSBDR481
HTML tags are very limited for an .rdf report.
Is there any way to achieve this functionality, using another technique?
If you used the Wizard to create a report (you should have; it does a lot of dirty job for you), it also creates layout and puts everything into its place, creating a "grid" (table), something very close to what you need.
Navigate to paper layout editor where you can choose to format lines (cells, frames) - in the vertical toolbar, pick a line color (for example, black). In (horizontal) menu, go to Format menu (and then Line and Border submenus), selecting borders you want (top, bottom, right, left).
Once you're done, run the report and you should see a pretty table.
Saying that "output format is .rdf", that's wrong. Report is saved as a .rdf file, but its output can be, for example, a PDF file.
Never mind that, it was just a side note.

Knitr Bookdown - building high res graphics and hyperlink from RMD

I am using R/Rstudio/bookdown to generate a large document with many figures and tables.
I'd like the user to be able to click on the document image and be passed through to a high-res version of the image that is in the document. Ideally this happens in a new browser window, rather than into GIMP, etc.
This could happen by clicking on the document image, or via a simple hyperlink near to the image. Any suggestions?
Ideally I would be able to build the document image and the high-res image at the same time and this could be relatively automated.

Resources