The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of {circletyper}
is to enable text curving in
Shiny apps, by adapting CircleType.js into
R.
You can install the CRAN version of {circletyper}
with:
install.packages("circletyper")
or the development version with:
# install.packages("devtools")
::install_github("etiennebacher/circletyper") devtools
library(shiny)
library(magrittr)
library(circletyper)
<- fluidPage(
ui use_circletype(), # load dependencies
# Wrap the text element you want to curve into circletype()...
circletype(h2("this is a title", id = "testh2"), dir = -1, radius = 200),
# ... or use magrittr's pipe
strong("this is a bold text", id = "teststrong") %>% circletype(dir = 1),
br(),
actionButton("remove", "remove circletype effect")
)
<- function(input, output, session) {
server
# You can also remove the circletype effect
observeEvent(input$remove, {
remove_circletype("teststrong")
})
}
shinyApp(ui, server)
Initial | After clicking on the button |
---|---|
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.