Skip to content

Commit

Permalink
Fix #51 - adds "results = asis" for kable to print in a for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosse Nyström authored and drBosse committed Nov 5, 2021
1 parent 19dae83 commit 4cfa324
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tempo.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ if ( ! length(aggregated.data) > 0) {
source("data-helpers.R")
```

```{r, echo = FALSE, warning = FALSE, message = FALSE}
```{r, echo = FALSE, warning = FALSE, message = FALSE, results = "asis"}
teams.with.data <- levels(factor(aggregated.data$team))
for (team.id in teams.with.data) {
print(subset(team.data, id == team.id)$name)
# print(subset(team.data, id == team.id)$name)
user.data <- gen.user.data(aggregated.data, team.id)
Expand Down Expand Up @@ -299,10 +299,10 @@ for (team.id in teams.with.data) {
scale_x_discrete(name = NULL) +
scale_y_continuous(
name = "Delta hours [h]",
sec.axis = dup_axis()) +
ggtitle(subset(team.data, id == team.id)$name)
sec.axis = dup_axis())
print(knitr::kable(user.delta, caption = subset(team.data, id == team.id)$name))
print(knitr::kable(user.delta, caption = "User summary"))
plot(accumulated)
plot(team)
Expand Down

0 comments on commit 4cfa324

Please sign in to comment.