Skip to content

Commit

Permalink
lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
TanguyBarthelemy committed Apr 14, 2024
1 parent 23f665b commit d47f730
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
16 changes: 8 additions & 8 deletions doc/EN/JDemetra+_configuration_guide_EN.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ color_format <- function(x, color, url = 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 = "")
# Génération de .html
# Génération de .html
} else if (output_format == "html") {
ret <- paste("<font color='", color, "'>", x, "</font>", sep = "")
# Génération de .md pour Github
# Génération de .md pour Github
} 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 <- x |>
gsub(pattern = "\\", replacement = "\\\\", fixed = TRUE) |>
gsub(pattern = "_", replacement = "\\\\_", fixed = TRUE)
ret <- paste("${\\textsf{\\color{", color, "}{", ret, "}}}$", sep = "")
}
# Autres ?
# Autres ?
} else {
ret <- x
}
Expand Down
16 changes: 8 additions & 8 deletions doc/EN/JDemetra+_quick_installation_guide_EN.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ color_format <- function(x, color, url = 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 = "")
# Génération de .html
# Génération de .html
} else if (output_format == "html") {
ret <- paste("<font color='", color, "'>", x, "</font>", sep = "")
# Génération de .md pour Github
# Génération de .md pour Github
} 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 <- x |>
gsub(pattern = "\\", replacement = "\\\\", fixed = TRUE) |>
gsub(pattern = "_", replacement = "\\\\_", fixed = TRUE)
ret <- paste("${\\textsf{\\color{", color, "}{", ret, "}}}$", sep = "")
}
# Autres ?
# Autres ?
} else {
ret <- x
}
Expand Down
16 changes: 8 additions & 8 deletions doc/FR/Guide_de_configuration_JDemetra+.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ color_format <- function(x, color, url = 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 = "")
# Génération de .html
# Génération de .html
} else if (output_format == "html") {
ret <- paste("<font color='", color, "'>", x, "</font>", sep = "")
# Génération de .md pour Github
# Génération de .md pour Github
} 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 <- x |>
gsub(pattern = "\\", replacement = "\\\\", fixed = TRUE) |>
gsub(pattern = "_", replacement = "\\\\_", fixed = TRUE)
ret <- paste("${\\textsf{\\color{", color, "}{", ret, "}}}$", sep = "")
}
# Autres ?
# Autres ?
} else {
ret <- x
}
Expand Down
16 changes: 8 additions & 8 deletions doc/FR/Installation_rapide_JDemetra+.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ color_format <- function(x, color, url = 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 = "")
# Génération de .html
# Génération de .html
} else if (output_format == "html") {
ret <- paste("<font color='", color, "'>", x, "</font>", sep = "")
# Génération de .md pour Github
# Génération de .md pour Github
} 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 <- x |>
gsub(pattern = "\\", replacement = "\\\\", fixed = TRUE) |>
gsub(pattern = "_", replacement = "\\\\_", fixed = TRUE)
ret <- paste("${\\textsf{\\color{", color, "}{", ret, "}}}$", sep = "")
}
# Autres ?
# Autres ?
} else {
ret <- x
}
Expand Down

0 comments on commit d47f730

Please sign in to comment.