Questions tagged [xaringan]
An R package to create HTML5 slides based on R Markdown and the JavaScript library remark.js.
216
questions
0
votes
0
answers
21
views
Flextable font is different in rendered xaringan document than is typed in the R console
I have a {xaringan} presentantion with a table for which I'm using {flextable}. In the table I set the font of one specific cell.
If I type in the console the following lines of code:
library(...
0
votes
1
answer
27
views
Show an image on hover on xaringan slides
I have tested the following codes on a normal HTML webpage with no problem. However, I can't get it work on a xaringan slide. xaringan is an R presentation template.
I am not sure if there is any ...
0
votes
0
answers
33
views
r code chunk is not presented properly under tab with xaringan template
I am preparing a presentation using a xaringan template. I designed multiple tabs on one slide and included an R code chunk under one tab. The code chunk was not presented properly.
[extra words to ...
1
vote
0
answers
40
views
Xaringan: Extra character in panel
New to Xaringan and StackOverflow. Had a hard time figuring out how to create tabs (panels) on slides given the info available in the instructions. But, I have it working. However, there is a ] ...
0
votes
2
answers
45
views
Xaringan text block with >
I'm using R-Markdown to build an html presentation.
I am trying to figure out how to change options for the indented text blocks in Xaringan presentations using css, but I can't figure out what the ...
0
votes
1
answer
70
views
Quarto rendering Xaringan
I have a Quarto website created in an R-Studio project and, when rendering a very simple xaringan slides document, I get very different results when the same file is saved in the directory with the ...
0
votes
0
answers
38
views
Plots (ggplot2) in my R markdown slides (xaringan) error when i share in R pubs or just html file
I'm trying to share mi homework in r markdown slides (with xaringan) through r pubs o just sharing the html file but i realized that the plots looks like: error that doesn't exist in my local machine.
...
1
vote
0
answers
16
views
items flying one after another does not work in tabs in presentation with xaringan theme
-- usually is inserted in between two items for showing one item after another by clicking the mouse. However, it does not work in tabs.
<!-- Tab links -->
<div class="tab">
&...
1
vote
1
answer
32
views
Multiple images (logo and a background image) in xaringan Title Slide
I'm trying to use a logo plus a background image on slides prepared with xaringan (rmarkdown).
I haven't found instructions on how to do that.
So far, I have this (only the logo):
---
output:
...
0
votes
1
answer
38
views
How can I add an image to the title slide in Rmarkdown (xaringan)?
I am making a presentation using xaringan. I would like to add the logo of my university in the background of the title slide. I would also like to know how to set the position of this image
Mi code ...
1
vote
0
answers
54
views
Setting css class with variable in Xaringan with remark.js
I often need to change dynamically the font size or other properties for xaringan slides. Instead of defining a lot of different CSS classes I would like to define a general fontsize class and then ...
0
votes
1
answer
24
views
How to properly write foreign exchange symbol in xaringan
I am just wondering how to write foreign exchange symbol in xaringan, for example, Japanese Yen, Euro, etc. I just find that \textyen does not work for xaringan.
3
votes
0
answers
30
views
Left brace on matrix in Xaringan
Can we also do the following expression in Xaringan, in particular left brace?
I borrow the idea from https://tex.stackexchange.com/questions/164664/how-to-create-an-array-with-both-vertical-and-...
2
votes
1
answer
84
views
How to change background color in a moon_reader presentation
I am struggling to change the background color of my presentation that I am constructing with xaringan::moon_reader, Rmarkdown and Rstudio.
Here is my code:
---
title: "Changing CSS"
output:
...
0
votes
0
answers
16
views
How can I properly list items in xaringan slide without misaligned dots?
I often encounter the misaligned dots whenever I list the items in xaringan slides for some reason. I think I ensure that there's no extra or unnecessary space between the codes or items. I just want ...
1
vote
1
answer
67
views
How to use image in my computer as a background image in xaringan
I know the following code will make a background image of xaringan slide.
---
class: inverse, left, top
background-image:
url("")
background-size: contain
But what if the image is not from ...
1
vote
1
answer
95
views
How to add scrollable pdf file on xarigan slide
I learned how to insert a certain page of pdf file on my xaringan slide using the following code:
```
{r}
magick::image_read_pdf("document.pdf", pages = 1)
```
The problem is I still cannot ...
1
vote
1
answer
73
views
How to make incremental slide within .pull-left[] in xaringan?
I divide a xaringan slide into two columns using .pull-left[] and .pull-right[]. But I realize that I cannot make each item incremental within each column. Is there any way to make the items ...
1
vote
0
answers
32
views
How to insert image wrapped by text in Xaringan slides
I know in latex the code for inserting image wrapped by text is something like:
\begin{wrapfigure}{r}{0.4\textwidth}
\centering
\includegraphics[width=0.35\textwidth]{img1.jpg}
\caption{This ...
2
votes
1
answer
33
views
Incremental does not work with $$ in xaringan
One of my xaringan slide has the following code, but incremental does not work properly with $$ equation $$. Wondering what do I miss here.
# Multiple regression
#### It is only when:
$$y=\beta_0+\...
1
vote
1
answer
126
views
How to hyperlink email address and target website on xaringan slides
I want to put my email address on xaringan slide with blue color + underlined hyperlink:
I also want to put a target website on the slide with a blue color hyperlink.
I tried something like the ...
1
vote
1
answer
67
views
Failed to generate output. Reason: Cannot navigate to invalid URL (Convert xaringan html or rmd file into pdf)
I am trying to convert xaringan slide to pdf file using the following code found in
this page
---
title: "Lecture"
subtitle: "subtitle"
author: "Instructor"
institute: &...
2
votes
1
answer
27
views
How to move the title to the right or centered on the title slide in xaringan?
For some reason, my code does work as I intend. I want my title right-aligned with the following code, but for some reason, it does not work. Any mistake I made here?
My code is
---
title: "...
0
votes
1
answer
263
views
How to adjust title size or banner size of a single slide in xaringan
I have encountered an issue with the size of banner title as in the following picture.
It is two-line title, which does not fit into the banner.
Is there any way to make the banner size bigger (...
0
votes
0
answers
123
views
How to control font size of header in xaringan slides?
I am using xaringan in rmarkdown with the following yaml heading.
---
title: "business"
subtitle: "investment"
author: "Instructor"
institute: "University"
date:...
0
votes
0
answers
33
views
How to make a space between two side-by-side images in xaringan slides using rmarkdown
I want to include two images side-by side way, but don't know how to make a space between the two images. My code is the following:
```{r, echo=FALSE, out.height="30%", out.width="40%&...
0
votes
0
answers
59
views
How to play mp4 music file in my local folder on xaringan?
I want to play mp.4 file on my xaringan slide, and I add the following but it won't play. Am I missing something here? Thank you.
<video width="500" height="400" controls>
...
0
votes
1
answer
54
views
Is there any principle to use "--" (incremental slide) properly on xaringan?
Whenever I use -- to generate incremental slides. Sometimes it works but sometimes not.
For example, the following codes work different way. It seems -- works in very random way. I was wondering if ...
0
votes
1
answer
56
views
How to properly write dollar sign on xaringan?
I am using Xaringan slides. I want to write dollar values like $10-$5=$5 using math notation.
My code is the following:
$ \$10-\$5 = \$5 $.
However, the code will not generate the outcome in ...
0
votes
1
answer
121
views
How to move my title position with background image in Xaringan?
Hi I added background image for my title page but once I added the following in order to move my title to top and left, the background image was gone.
Is there any way to fix this issue?
...
0
votes
1
answer
41
views
Xaringan: image resize option does not work for me
For some reason,  does not work for me.
Any solution to fix this?
My yaml heading is the following:
---
title: "Econ"
subtitle: "Orientation and Lecture 1"
...
1
vote
1
answer
101
views
How to run tikz in xaringan?
I am a newbie of xaringan and trying to draw some pictures using tikz package.
I was wondering how to run tikz in xaringan slides.
My codes are:
---
title: "Econ"
subtitle: "Lecture 1&...
0
votes
1
answer
565
views
How to change font style, size and color in xaringan slide
I was wondering if there is a simple way to do the change of font size, colour and style (bold, italic, etc.) for particular words or phrases in individual xaraingan slides within rmarkdown.
The ...
1
vote
1
answer
97
views
How to activate Rstudio Viewer pane for rmarkdown xaringan slide?
Hi whenever I knit xaringan slide rmd file in rmarkdown, it shows up in a separate window instead of Viewer inside rstudio. Is there any way to make rstudio Viewer properly working? Thanks.
1
vote
0
answers
36
views
How to show a couple of equations in incremental way in xaringan?
Hi I was wondering how to show two equations in incremental way using xaringan in rmarkdown slides like using \pause command in beamer.
ax+by = c (equation 1)
dx+ey = f (equation 2)
2
votes
1
answer
149
views
Spacing changes when using xaringan with ninjutsu and going from a list with one bullet point to two bullet points
I am trying to create a complex incremental slide in Rmarkdown using the xaringan with ninjutsu for column formatting. I cannot (to my knowledge) use the standard approaches to incremental slides as ...
1
vote
0
answers
56
views
presenter notes for each incremental slide using xaringan in R
Is it possible to add presenter notes to each incremental slide in Xaringan presentations? sometimes I need to have a particular note for the first bullet of my slide, but the presenter notes only ...
0
votes
0
answers
31
views
How can i add xaringan panelsets to a .rmd/.rmarkdown file in blogdown?
i'm working on a blogdown website and i want to add a xaringan panelset to my index.Rmd file. How can i do this? Do i have to modify the yaml? Sorry for my poor english
0
votes
0
answers
145
views
R Markdown stopped knitting out of a sudden even after I uninstalled R studio and updated R
I was working on my xaringan slides and everything was working perfectly. Out of nowhere, the slides, and all r markdown documents, stopped knitting. When I try to knit, I get the following error
...
1
vote
2
answers
77
views
In xaringan, how to change the margin under flextable title?
Let's say I have the following xaringan document:
---
title: "Test"
author:
- "me"
date: "2022-06-20"
output:
xaringan::moon_reader:
css: [default, ninjutsu]
...
1
vote
1
answer
177
views
R enabling fullscreen in iframe embeded in an Xaringan HTML presentation
I am thinking of embedding a couple of iframes in a slide part of an Xaringan HTML presentation. The below code can be used to embed an iframe.
I want to know how I can add a fullscreen toggle in an ...
2
votes
1
answer
94
views
R DT table with buttons does not fit page in Xaringan HTML5 presentation
I have a dataframe df that I am trying to output as an interactive table in an Xaringan HTML5 presentation. The code works fine, it's just that after adding buttons the table no longer completely fits ...
3
votes
1
answer
241
views
R Autofit DT table width and height in xaringan HTML5 presentation
I have a dataframe (df) that I am trying to output as a DT table in an rmd xaringan presentation.
The code works fine, it's just that the table does not fit the Chrome browser page.
How can I fix ...
0
votes
0
answers
74
views
Access `%current%` slide number in custom slide number format in Xaringan
I am trying to create a custom footer with a progressbar and slide number in Xaringan. I've been able to create the footer with the progressbar working correctly. The progress bar and the current ...
1
vote
0
answers
53
views
Currently there is a way to disable some keyboard shortcuts in xaringan slides?
I have a DT table with some normality test results, the idea is that the reader can search for the result he/she is interested in using the keyboard.
The problem is that when typing some words the ...
1
vote
2
answers
371
views
KableExtra conditional tables in R
I am working on replicating in a Rmarkdown a report I made in Excel.
In some of the results I have tables with conditional columns with color formatting, from red to green (red for the lowest data and ...
2
votes
1
answer
179
views
R Markdown missing plots when I print to PDF from xaringan
This stackoverflow solution describes a method (through the xaringanBuilder package) to build your xaringan slides to various formats (html, pdf, pptx, etc). Unfortunately, it doesn't solve the issue ...
2
votes
1
answer
635
views
How to get gray background in R Markdown for plain text code fences?
In xaringan all code fences for various programming languages display a gray background when I use the default YAML. The code fence background is gray, just like this:
---
title: "Presentation ...
0
votes
0
answers
116
views
R Markdown broken image icon in Xaringan presentation
I am new to Xaringan presentations in R and right now I am trying to create a demo presentation. Currently, I am facing an issue with displaying a picture from a local network drive path (same path ...
1
vote
0
answers
17
views
Include slide in Xaringan presentation if condition based on parameter is true
I would like to include a slide only if a metadata parameter is true.
As an example if the rmarkdown::metadata$institute parameter is not NULL , include the slide showing institution's blurb.
Regards