# NOT RUN {
if (interactive()) {
# This element supports bidirectional text override.
# We can force text to render from right to left instead
# of left to right.
library(dash)
app <- Dash$new()
app$layout(
htmlDiv(list(
htmlP(children="This text will print from left to right."),
htmlP(children="Below, we use bidirectional override to print right to left:"),
htmlBdo(children="This text will print from right to left.",
dir="rtl")
)
)
)
app$run_server()
}
# }
Run the code above in your browser using DataLab