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'); - - +
@@ -164,7 +154,6 @@
-
@@ -258,32 +247,22 @@

- - - - - diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index e56fbcd..4574211 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -17,27 +17,21 @@ - + - + - - - - - + - - + - + - - - + + @@ -49,11 +43,8 @@ - - - - - + + @@ -78,10 +69,9 @@ gtag('config', 'UA-74544116-1'); - - +
@@ -164,7 +154,6 @@
-
@@ -179,32 +168,22 @@

License

- - - - - diff --git a/docs/LICENSE.html b/docs/LICENSE.html index 5c27e3f..5781f20 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -17,27 +17,21 @@ - + - + - - - - - + - - + - + - - - + + @@ -49,11 +43,8 @@ - - - - - + + @@ -78,10 +69,9 @@ gtag('config', 'UA-74544116-1'); - - +
@@ -164,7 +154,6 @@
-
@@ -183,32 +172,22 @@

MIT License

- - - - - diff --git a/docs/authors.html b/docs/authors.html index c5c8258..ce7ad69 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,27 +17,21 @@ - + - + - - - - - + - - + - + - - - + + @@ -49,11 +43,8 @@ - - - - - + + @@ -78,10 +69,9 @@ gtag('config', 'UA-74544116-1'); - - +
@@ -164,7 +154,6 @@
-
@@ -185,23 +174,19 @@

Authors

- - - diff --git a/docs/index.html b/docs/index.html index 4197688..52720ef 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,26 +5,21 @@ -CSS in R • linne +Convenient 'CSS' • linne - - - - - + + + - - - - - - - + + + + -
@@ -137,62 +131,63 @@

Installation

-

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.

+ +

Or install the development version from Github.

+
# install.packages("remotes")
+remotes::install_github("JohnCoene/linne")

Example

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)

Example of linne

-