Skip to content

Commit 6192d3a

Browse files
committed
merge dev
Merge branch 'dev' # Conflicts: # .github/workflows/bookdown-build-and-deploy.yml # .gitignore # Dockerfile # m1_admin.R # renv.lock
2 parents 5e753cb + 7cfd376 commit 6192d3a

File tree

11 files changed

+55
-1667
lines changed

11 files changed

+55
-1667
lines changed

.github/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/bookdown-build-and-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-and-deploy-bookdown:
13-
name: Build and bookdown
14-
uses: MTES-MCT/parcours-r/.github/workflows/bookdown-build-and-deploy.yml@master
13+
name: Build and deploy bookdown
14+
uses: MTES-MCT/parcours-r/.github/workflows/bookdown-build-from-desc-and-deploy.yml@master
1515
with:
16-
r_version: '4.0.4'
16+
r_version: '4.2.1'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Test compilation de parcours_r_module1_socle_introduction
2+
3+
on:
4+
pull_request:
5+
branches: [main, master, dev, dev-ci]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-bookdown:
11+
name: Build bookdown
12+
uses: MTES-MCT/parcours-r/.github/workflows/bookdown-build-from-desc.yml@master
13+
with:
14+
r_version: '4.2.1'

.github/workflows/deploy_bookdown.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/rstudio-image-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@ on:
55
branches:
66
- main
77
- master
8+
- dev
89
paths:
910
- .github/workflows/rstudio-image-build.yml
1011
- Dockerfile
11-
- renv.lock
12+
- DESCRIPTION
1213

1314
pull_request:
1415
types:
1516
- created
1617
branches:
1718
- main
1819
- master
20+
- dev
1921
paths:
2022
- .github/workflows/rstudio-image-build.yml
2123
- Dockerfile
22-
- renv.lock
24+
- DESCRIPTION
2325

2426
workflow_dispatch:
2527

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
*.html
56
_book
67
_bookdown_files
7-
output/**
8-
z_archives/**
8+
output/*
9+
z_archives/*
10+

DESCRIPTION

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Type: Book
2+
Package: M1-Parcours-R
3+
Title: Formation à R Module 1 socle introduction
4+
Version: 0.1.0
5+
Description: Valise pédagogique pour la formation à R
6+
License: MIT
7+
URL: https://github.com/MTES-MCT/parcours_r_socle_introduction
8+
Imports:
9+
bookdown,
10+
COGiter,
11+
GGally,
12+
knitr,
13+
plotly,
14+
sf,
15+
stringi,
16+
tidyverse
17+
Remotes:
18+
MaelTheuliere/COGiter
19+
Encoding: UTF-8
20+
RoxygenNote: 7.2.1

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
ARG R_VERSION=4.2.1
2+
ARG GITHUB_PAT=${{ secrets.GITHUB_TOKEN }}
23

34
FROM inseefrlab/onyxia-rstudio:r${R_VERSION}
4-
ENV RENV_VERSION 0.16.0
55
RUN apt-get update && apt-get install -y cargo
66
RUN R -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))"
7-
RUN R -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')"
8-
COPY renv.lock renv.lock
9-
RUN R -e 'renv::restore()'
7+
COPY DESCRIPTION DESCRIPTION
8+
RUN R -e 'remotes::install_deps(dependencies = TRUE)'

m1_admin.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ propre.rpls::creer_pdf_book(
2424
"exercices-pour-r-studio.html"
2525
))
2626

27-
27+
imports <- sort(c("bookdown", attachment::att_from_rmds(path = ".", pattern = ".Rmd", recursive = FALSE, inline = TRUE)))
28+
attachment::att_to_desc_from_is(
29+
path.d = "DESCRIPTION",
30+
imports = imports, suggests = NULL,
31+
must.exist = FALSE
32+
)
33+

0 commit comments

Comments
 (0)