diff --git a/README.md b/README.md index ac71780..eba1a38 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,13 @@ CSS in R ## Installation -Install the Github version. +Install the stable version from CRAN. + +``` r +install.packages("linne") +``` + +Or install the development version from Github. ``` r # install.packages("remotes") diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index 652c0e5..495cbe7 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -17,27 +17,21 @@ - + - + - - - - - + - - + - + - - - + + @@ -49,11 +43,8 @@ - - - - - + + @@ -78,10 +69,9 @@ gtag('config', 'UA-74544116-1'); - -
+It is not yet on CRAN but is available on Github:
--# install.packages("remotes") -remotes::install_github("JohnCoene/linne") -
Install the stable version from CRAN.
+install.packages("linne")
Or install the development version from Github.
+# install.packages("remotes")
+remotes::install_github("JohnCoene/linne")
Using linne to place a floating logo in the top right of a shiny app.
--library(shiny) -library(linne) - -linne <- Linne$ - new()$ - rule( - sel_id("logo"), - position = "absolute", - top = 20, - right = 20, - maxHeight = 75, - zIndex = 9999 - ) - -ui <- fluidPage( - linne$include(), - h2("Basic usage of {linne}"), - img(src = "https://www.r-project.org/logo/Rlogo.png", id = "logo"), - plotOutput("plot") -) - -server <- function(input, output){ - output$plot <- renderPlot(plot(cars)) -} - -shinyApp(ui, server) -
library(shiny)
+library(linne)
+
+linne <- Linne$
+ new()$
+ rule(
+ sel_id("logo"), # select id = logo
+ position = "absolute",
+ top = 20,
+ right = 20,
+ maxHeight = 75,
+ zIndex = 9999
+ )
+
+ui <- fluidPage(
+ linne$include(),
+ h2("Basic usage of {linne}"),
+ img(src = "https://www.r-project.org/logo/Rlogo.png", id = "logo"),
+ plotOutput("plot")
+)
+
+server <- function(input, output){
+ output$plot <- renderPlot(plot(cars))
+}
+
+shinyApp(ui, server)