Skip to content

Commit 89f2e4f

Browse files
committed
bug fixes etc
1 parent c4c76a6 commit 89f2e4f

File tree

7 files changed

+24
-20
lines changed

7 files changed

+24
-20
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- button to print latex code in shiny app
66
- Checking for intervention set children to be on rightside
7-
- Other error checks
7+
- Other error checks and bugfixes
88

99
# causaloptim 0.5.0
1010

R/text-parsing.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ latex_bounds <- function(bounds, parameters, prob.sym = "P") {
315315

316316
} else {
317317

318-
l0 <- paste(bnd3$lower, collapse = "\\\\ \\n ")
318+
l0 <- paste(bnd3$lower, collapse = "\\\\ \n ")
319319
lwr <- sprintf("\\mbox{MAX} \\left. \\begin{cases} %s \\end{cases} \\right\\}", l0)
320320

321321

@@ -327,14 +327,14 @@ latex_bounds <- function(bounds, parameters, prob.sym = "P") {
327327

328328
} else {
329329

330-
r0 <- paste(bnd3$upper, collapse = "\\\\ \\n ")
330+
r0 <- paste(bnd3$upper, collapse = "\\\\ \n ")
331331
upr <- sprintf("\\mbox{MIN} \\left. \\begin{cases} %s \\end{cases} \\right\\}", r0)
332332

333333

334334
}
335335

336336

337-
return(sprintf("\\[ \\mbox{Lower bound} = %s \\] \\n \\[ \\mbox{Upper bound} = %s \\] \\n", lwr, upr))
337+
return(sprintf("\\[ \n \\mbox{Lower bound} = %s \n \\] \n \\[ \n \\mbox{Upper bound} = %s \n \\] \n", lwr, upr))
338338

339339

340340
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ This package is in early development. The interface is subject to change at any
1515
remotes::install_github("sachsmc/causaloptim")
1616
```
1717

18-
Or download the Windows binary from the releases section and install with
18+
Or download the Windows binary from the releases section (https://github.com/sachsmc/causaloptim/releases) and install with
1919

2020
```{r}
21-
install.packages('causaloptim_0.5.0.zip', repos = NULL)
21+
install.packages('causaloptim_0.5.1.zip', repos = NULL)
2222
```
2323

2424

@@ -34,4 +34,4 @@ results <- specify_graph()
3434

3535
A. Balke and J. Pearl, "Counterfactual Probabilities: Computational Methods,Bounds, and Applications" UCLA Cognitive Systems Laboratory, Technical Report (R-213-B).
3636
In R. Lopez de Mantaras and D. Poole (Eds.), Proceedings of the Conference on Uncertainty in Artificial Intelligence (UAI-94), Morgan Kaufmann, San Mateo, CA, 46-54, July 29-31, 1994.
37-
\url{https://ftp.cs.ucla.edu/pub/stat_ser/R213-B.pdf}.
37+
https://ftp.cs.ucla.edu/pub/stat_ser/R213-B.pdf.

docs/articles/shinyapp.html

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/news/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/shiny/interface/server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function(input, output) {
204204
" = %s", "("))
205205

206206
}
207-
def.eff <- paste0(def.eff, res, ")", ifelse(j < length(effectpath), ", ", ""))
207+
def.eff <- paste0(def.eff, res, paste(rep(")", max(1, nvs - 1)), collapse = ""), ifelse(j < length(effectpath), ", ", ""))
208208

209209
}
210210

0 commit comments

Comments
 (0)