The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
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[@]dogado.de.
Install the Github version.
# install.packages("remotes")
::install_github("JohnCoene/linne") remotes
{linne} contains a single reference class which comes with just a few
core methods. Always start with the new
method to
instantiate a new class.
library(linne)
<- Linne$new() linne
There are two core methods to {linne}:
define
- Define a global variablerule
- Add a CSS ruleLet’s say you want to change the look and feel of this button in a shiny application.
actionButton(inputId = "myButton", label = "Click me")
Using {linne} we define a CSS rule with the rule
method
to change how it looks.
library(linne)
<- Linne$
linne new()$
rule(
sel_input("myButton"), # inputId = "myButton"
backgroundColor = 'red',
fontSize = 20,
color = "white"
)
{linne} will automatically convert integers and numerics to pixels, therefore the above changes the font size to 20 pixels.
library(linne)
library(shiny)
<- fluidPage(
ui $include(), # include the CSS
linneactionButton(inputId = "myButton", label = "Click me")
)
<- function(input, output){}
server
shinyApp(ui, server)
Please note that the linne project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
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.
Health stats visible at Monitor.