-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
209 lines (168 loc) · 4.04 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
---
pagetitle: Packages R Antares
output: html_document
---
```{css, echo=FALSE}
body {
/*font-family: Georgia, "Times New Roman", Times, serif !important;*/
/*font-family: 'Roboto', sans-serif !important;*/
/*font: normal normal bold 55px/1.4em raleway,sans-serif;*/
background-color: #112446 !important;
color: #FFF !important;
}
.main-container {
top: 15px;
width:90% !important;
max-width: 1400px !important;
margin: 0 auto;
}
.logo {
display: block;
background: white;
padding: 30px;
height: 170px;
margin-left: auto;
margin-right: auto;
margin-top: 60px;
}
.logo-xs {
display: block;
background: white;
padding: 30px;
height: 110px;
margin-left: auto;
margin-right: auto;
margin-top: 30px;
}
.title {
text-align: center;
font-weight:bold;
border-top: 2px solid white;
margin-top: 0;
text-transform: uppercase;
font-size: 17px;
padding-top: 10px;
letter-spacing: 1px;
font-weight: 400;
}
.thumbnail-content {
color: #000;
padding: 5px;
text-align: center;
}
.thumbnail-title {
padding: 5px;
text-align: center;
}
.thumbnail {
position: relative;
padding: 0px;
margin-bottom: 20px;
overflow: auto;
}
.thumbnail img {
width: 100%;
height: 210px;
object-fit: contain;
}
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover {
color: #000;
background-color: #FFF;
}
.nav-pills>li>a {
border-radius: 4px;
color: #FFF;
border: 1px solid #FFF;
}
.nav>li>a:focus, .nav>li>a:hover {
color: #000;
}
```
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
# remotes::install_github("dreamRs/shufflecards")
library(shufflecards)
# remotes::install_github("dreamRs/particlesjs")
library(particlesjs)
# devtools::install_github("dreamRs/gfonts")
library(gfonts)
library(htmltools)
library(shiny)
library(yaml)
```
<a href="https://antares-simulator.org/" target = "_blank">
<img src="images/antares-logo.png" class="logo hidden-xs"></img>
<img src="images/antares-logo.png" class="logo-xs visible-xs-block"></img>
</a>
<h2 class="title">Antares R packages</h2>
<p style="text-align: center;">
<a href="https://rte-antares-rpackage.github.io/rPackagesRte/dashboard.html" style="color: #FFF;">
See activity dashboard
</a>
</p>
```{r font}
use_pkg_gfont("roboto")
```
```{r particles}
particlesjs::particles(
config = particlesjs::particles_config(
particles.color.value = "#ff9800",
particles.size.value = 5,
particles.opacity.value = 1,
particles.line_linked.opacity = 1,
particles.line_linked.color = "#ff9800"
), timeout = 1000
)
```
```{r packages}
packages <- yaml.load_file("packages.yml")
```
# {.tabset .tabset-fade .tabset-pills}
## <span> <img src="assets/flags/gb.svg" width="16" height="12" style="vertical-align: 0px;"/>EN</span>
<p style = "text-align: center; color: #FFF;">
Find here the most popular R packages developed by Rte around Antares.
You can edit a study, read simulation results and visualize them!
</p>
```{r, results='asis'}
fluidRow(
lapply(
X = packages$english,
FUN = function(package) {
column(
width = 3,
thumbnail(
title = package$name,
content = package$description,
href = package$link,
media = tags$img(src = paste0("images/", package$image)),
height = "420px"
)
)
}
)
)
```
## <span> <img src="assets/flags/fr.svg" width="16" height="12" style="vertical-align: 0px;"/>FR</span>
<p style = "text-align: center; color: #FFF;">
Retouvez ici les packages R les plus populaires développés par Rte autour d'Antares.
Vous pouvez éditer une étude, lire les résultats de simulations et les visualiser !
</p>
```{r, results='asis'}
fluidRow(
lapply(
X = packages$french,
FUN = function(package) {
column(
width = 3,
thumbnail(
title = package$name,
content = package$description,
href = package$link,
media = tags$img(src = paste0("images/", package$image)),
height = "420px"
)
)
}
)
)
```