Skip to content

Commit

Permalink
Translate % symbol for some tables #5
Browse files Browse the repository at this point in the history
  • Loading branch information
grinnellm committed Nov 5, 2021
1 parent e6fb335 commit a2eae88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ Imports:
forcats
Remotes: pbs-assess/gfutilities, pbs-assess/rosettafish
LazyData: true
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Config/testthat/edition: 3
6 changes: 3 additions & 3 deletions R/tables-parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ make.parameters.est.table <- function(model,
"$\\tau$",
"$\\sigma$")
col.names <- colnames(tab)
col.names <- latex.bold(latex.perc(col.names))
col.names <- latex.bold(latex.perc(col.names, translate))
col.names <- c(latex.bold(en2fr("Parameter", translate)), col.names)
tab <- cbind(new.col, tab)
colnames(tab) <- col.names
Expand Down Expand Up @@ -619,7 +619,7 @@ make.value.table <- function(model,
tab <- tab[tab[,1] >= syr,]
col.names <- en2fr(colnames(tab), translate, allow_missing = TRUE)
col.names[1] <- en2fr("Year", translate)
col.names <- latex.bold(latex.perc(col.names))
col.names <- latex.bold(latex.perc(col.names, translate))
colnames(tab) <- col.names

size.string <- latex.size.str(font.size, space.size)
Expand Down Expand Up @@ -675,7 +675,7 @@ make.biomass.depletion.table <- function(model,

col.names <- en2fr(colnames(tab), translate, allow_missing = TRUE )
col.names[1] <- en2fr("Year", translate)
col.names <- latex.bold(latex.perc(col.names))
col.names <- latex.bold(latex.perc(col.names, translate))
colnames(tab) <- col.names

addtorow <- list()
Expand Down

0 comments on commit a2eae88

Please sign in to comment.