Skip to content

Commit dd29f80

Browse files
committed
ci: install package
1 parent e74a161 commit dd29f80

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

content/post/2020-05-10_shinipsum-cran-realease/index.Rmarkdown

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ projects: []
2222
---
2323

2424
```{r include=FALSE}
25-
install.packages("shinipsum")
25+
if (!requireNamespace("shinipsum")){
26+
install.packages("shinipsum", repos = "https://cran.rstudio.com")
27+
}
2628
```
2729

2830

2931
I'm very happy to announce that `{shinipsum}` is now on CRAN!
3032

31-
`{shinipsum}` is a package that can help you build `{shiny}` prototypes faster by providing a series of functions that can generate random elements to populate your UI.
32-
If you are familiar with "lorem ipsum", the fake text generator that is used in software design as a placeholder for text, the idea is the same: generating placeholders for Shiny outputs.
33+
`{shinipsum}` is a package that can help you build `{shiny}` prototypes faster by providing a series of functions that can generate random elements to populate your UI.
34+
If you are familiar with "lorem ipsum", the fake text generator that is used in software design as a placeholder for text, the idea is the same: generating placeholders for Shiny outputs.
3335

3436
`{shinipsum}` can be installed from CRAN with:
3537

@@ -43,7 +45,7 @@ You can install this package from GitHub with:
4345
remotes::install_github("Thinkr-open/shinipsum")
4446
```
4547

46-
In this package, a series of functions that generates random placeholders.
48+
In this package, a series of functions that generates random placeholders.
4749
For example, `random_ggplot()` generates random `{ggplot2}` elements:
4850

4951
```{r}
@@ -53,17 +55,17 @@ library(ggplot2)
5355

5456

5557
```{r}
56-
random_ggplot() +
57-
labs(title = "Random plot")
58+
random_ggplot() +
59+
labs(title = "Random plot")
5860
```
5961

6062
```{r}
61-
random_ggplot() +
62-
labs(title = "Random plot")
63+
random_ggplot() +
64+
labs(title = "Random plot")
6365
```
6466

6567
Of course, the idea is to combine this with a Shiny interface, for example `random_ggplot()` will be used with a `renderPlot()` and `plotOutput()`.
66-
And as we want to prototype but still be close to what your final application will look like, these functions take arguments that can shape the output: for example, `random_ggplot()` has a `type` parameter that can help you select a specific geom.
68+
And as we want to prototype but still be close to what your final application will look like, these functions take arguments that can shape the output: for example, `random_ggplot()` has a `type` parameter that can help you select a specific geom.
6769

6870
```{r eval = FALSE}
6971
library(shiny)
@@ -93,9 +95,9 @@ shinyApp(ui, server)
9395
```
9496

9597

96-
Other `{shinipsum}` functions include:
98+
Other `{shinipsum}` functions include:
9799

98-
+ tables:
100+
+ tables:
99101

100102
```{r 10-prototyping-9 }
101103
random_table(nrow = 3, ncol = 10)
@@ -109,7 +111,7 @@ random_print(type = "model")
109111

110112
... and text, image, ggplotly, dygraph, and DT.
111113

112-
Learn more about `{shinipsum}`:
114+
Learn more about `{shinipsum}`:
113115

114116
+ [`{shinipsum}` website](https://thinkr-open.github.io/shinipsum/)
115117
+ [Chapter 10 Building an “ipsum-app” - Engineering Production-Grade Shiny Apps](https://engineering-shiny.org/stepprotopype.html)

0 commit comments

Comments
 (0)