Skip to content

Commit

Permalink
saving results.tab directly in folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Detlef Groth committed Sep 6, 2023
1 parent d01bdc3 commit 3766211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vignettes/figures.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 201,14 @@ head(agg2,n=10)
agg=cbind(agg1,agg2$x,agg3$x,agg4$x)
colnames(agg)=c('model','seasons','mean.apl','sd.apl','mean.wapl','sd.wapl')
head(agg)
write.table(agg,file="../inst/results/results.tab",sep="\t",quote=FALSE)
write.table(agg,file="results.tab",sep="\t",quote=FALSE)
```

No we display the results, they were cached in previous runs:

```{r label=write-table,eval=TRUE}
if (file.exists(file.path("../inst/results/results.tab"))) {
agg=read.table("../inst/results/results.tab",header=TRUE,sep="\t")
if (file.exists(file.path("results.tab"))) {
agg=read.table("results.tab",header=TRUE,sep="\t")
library(knitr)
for (i in 3:6) {
agg[,i]=round(agg[,i],3)
Expand Down

0 comments on commit 3766211

Please sign in to comment.