Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
TanguyBarthelemy committed Apr 8, 2024
1 parent 5a9d1e9 commit 1a6ea28
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 20 deletions.
6 changes: 3 additions & 3 deletions doc/EN/JDemetra+_quick_installation_guide_EN.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ windows_path_color <- "#006817"

\renewcommand{\xelatexemojipath}[1]{../xelatex-emoji/images/#1}

## Context
## Context {-}

This is a quick guide on how to install [JDemetra+](https://jdemetra-new-documentation.netlify.app/) Graphical User Interface, Cruncher and related R packages.

If you need more information on how to configure your computer, you should read this
more [detailed guide](https://github.com/TanguyBarthelemy/JD-Tutorials/blob/master/Sheets/JDemetra+_configuration_guide_EN.pdf)

## Installing the Graphical User Interface (GUI)
## Installing the Graphical User Interface (GUI) {-}

You can find the latest releases

Expand Down Expand Up @@ -114,7 +114,7 @@ In the **v3.x family** some of the additional features are:
- Additional algorithms for seasonal adjustment


## Installing the cruncher
## Installing the cruncher {-}

To install the [Cruncher](https://jdemetra-new-documentation.netlify.app/t-production-tools-cruncher-qr) :

Expand Down
97 changes: 97 additions & 0 deletions doc/FR/Installation_rapide_JDemetra+.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
title: "Installation des outils pour la désaisonnalisation"
author: "Tanguy BARTHELEMY"
# date: "2023-01-17"
output:
github_document: default
html_document:
df_print: paged
number_sections: TRUE
highlight: "arrow"
theme: "readable"
css: "../style.css"
pdf_document:
includes:
in_header:
- ../../xelatex-emoji/xelatexemoji.sty
- ../../xelatex-emoji/xelatexemoji-flags.sty
extra_dependencies: ["url"]
number_sections: TRUE
highlight: "arrow"
latex_engine: xelatex
keep_tex: false
always_allow_html: true
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

```{r, echo = FALSE, eval = TRUE}
html_color <- "#000cff"
windows_path_color <- "#006817"
color_format <- function(x, color, url = TRUE) {
color_name <- deparse(substitute(color))
output_format <- knitr::opts_knit$get("rmarkdown.pandoc.to")
x <- x |> gsub(pattern = "\\", replacement = "\\\\", fixed = TRUE)
if (output_format == "latex") {
x <- x |> gsub(pattern = "#", replacement = "\\#", fixed = TRUE)
ret <- paste("\\textcolor{", color_name, ifelse(url, "}{\\url{", "}{\\nolinkurl{"), x, ifelse(url, "}}", "}}"), sep = "")
} else if (output_format == "html") {
ret <- paste("<font color='", color, "'>", x, "</font>", sep = "")
} else if (output_format == "gfm+tex_math_dollars-yaml_metadata_block") {
if (url) {
ret <- paste("[", x, "](", x, ")", sep = "")
} else {
ret <- x |> gsub(pattern = "\\", replacement = "\\\\", fixed = TRUE)
ret <- paste("${\\textsf{\\color{", color, "}{", ret, "}}}$", sep = "")
}
} else {
ret <- x
}
return(ret)
}
```

```{r, echo = FALSE, eval = TRUE}
html_color <- "#000cff"
windows_path_color <- "#006817"
```

\definecolor{html_color}{HTML}{000cff}
\definecolor{windows_path_color}{HTML}{006817}

\renewcommand{\xelatexemojipath}[1]{../xelatex-emoji/images/#1}

## Installation de JDemetra+ {-}

Vous trouverez les 2 versions actuelles de JDemetra+ (v2 et v3) :

- en v2 : la dernière release ([v2.2.4](https://github.com/jdemetra/jdemetra-app/releases/tag/v2.2.4))
- en v3 : la dernière release ([v3.2.2](https://github.com/jdemetra/jdplus-main/releases/tag/v3.2.2))

Il suffit de **Télécharger** et **dézipper** le dossier compressé `jdemetra-standalone-3.2.2-windows-x86_64.zip` qui permet d'avoir une version portable du logiciel.


## Installation du cruncher {-}

Pour installer le cruncher :

- en v2, il faut aller sur la page du [**JWSACruncher**](https://github.com/jdemetra/jwsacruncher) et **Télécharger** et **Dézipper** le fichier `jwsacruncher-2.2.4-bin.zip`
- en v3, il faut aller sur la page de [**jdplus-main**](https://github.com/jdemetra/jdplus-main) et **Télécharger** et **Dézipper** le fichier `jwsacruncher-standalone-3.2.2-windows-x86_64.zip`


## Paramétrage de R et Rstudio {-}

Pour utiliser les packages en v3, il faut spécifier le chemin jusqu'à Java 17 à R.

Pour cela il suffit d'ajouter cette ligne de code au début du programme (en paramétrant le chemin là où vous avez installé JDemetra+) :

```{r, echo = TRUE, eval = FALSE}
Sys.setenv("JAVA_HOME" = "chemin/vers/nbdemetra-3.2.2/jdk-21.0.2+13-jre")
```

40 changes: 24 additions & 16 deletions doc/render.R
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@

# Rendu des fiches -------------------------------------------------------------

# Fiches FR
for (fiche_rmd in list.files("./doc/FR/", full.names = TRUE, pattern = "*.Rmd")) {
rmarkdown::render(
input = fiche_rmd,
output_dir = "Fiches",
output_format = "all"
)
}
# # Fiches FR
# for (fiche_rmd in list.files("./doc/FR/", full.names = TRUE, pattern = "*.Rmd")) {
# rmarkdown::render(
# input = fiche_rmd,

Check warning on line 7 in doc/render.R

View workflow job for this annotation

GitHub Actions / lint-project

file=doc/render.R,line=7,col=29,[trailing_whitespace_linter] Trailing whitespace is superfluous.
# output_dir = "Fiches",

Check warning on line 8 in doc/render.R

View workflow job for this annotation

GitHub Actions / lint-project

file=doc/render.R,line=8,col=33,[trailing_whitespace_linter] Trailing whitespace is superfluous.
# output_format = "all"
# )
# }
#

Check warning on line 12 in doc/render.R

View workflow job for this annotation

GitHub Actions / lint-project

file=doc/render.R,line=12,col=2,[trailing_whitespace_linter] Trailing whitespace is superfluous.
# # Sheets EN
# for (sheet_rmd in list.files("./doc/EN/", full.names = TRUE, pattern = "*.Rmd")) {
# rmarkdown::render(
# input = sheet_rmd,

Check warning on line 16 in doc/render.R

View workflow job for this annotation

GitHub Actions / lint-project

file=doc/render.R,line=16,col=29,[trailing_whitespace_linter] Trailing whitespace is superfluous.
# output_dir = "Sheets",

Check warning on line 17 in doc/render.R

View workflow job for this annotation

GitHub Actions / lint-project

file=doc/render.R,line=17,col=33,[trailing_whitespace_linter] Trailing whitespace is superfluous.
# output_format = "all"
# )
# }

# Sheets EN
for (sheet_rmd in list.files("./doc/EN/", full.names = TRUE, pattern = "*.Rmd")) {
rmarkdown::render(
input = sheet_rmd,
output_dir = "Sheets",
output_format = "all"
)
}
print(getwd())
# install.packages("rmarkdown")
rmarkdown::render(
input = "./doc/FR/Installation_rapide_JDemetra+.Rmd",
output_dir = "Fiches",
output_format = "pdf_document"
)
2 changes: 1 addition & 1 deletion xelatex-emoji/xelatexemoji.sty
Original file line number Diff line number Diff line change
Expand Up @@ -1024,4 +1024,4 @@
\newunicodechar{🦄}{\xelatexemoji{1f984}}
\newunicodechar{🧀}{\xelatexemoji{1f9c0}}

\usepackage{../xelatex-emoji/xelatexemoji-flags}
% \usepackage{../../xelatex-emoji/xelatexemoji-flags}

0 comments on commit 1a6ea28

Please sign in to comment.