Skip to content

Commit aa128d7

Browse files
authored
Fix website build (#187)
* install pmlb from local
1 parent 398e3d6 commit aa128d7

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docs_sources/python-ref.Rmd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@ output:
88
collapsed: false
99
css: custom.css
1010
---
11+
12+
```{r message=FALSE}
13+
message("Current working directory: ", getwd())
14+
message("Contents of working directory: ", paste(dir(getwd()), collapse = ", "))
15+
```
16+
1117
```{r setup, include=FALSE}
1218
library(reticulate)
1319
1420
knitr::knit_engines$set(python = reticulate::eng_python)
1521
knitr::opts_knit$set(progress = TRUE, verbose = TRUE, highlight = TRUE)
1622
reticulate::py_install(c("matplotlib", "scikit-learn", "seaborn"))
17-
reticulate::py_install("pmlb", pip = TRUE)
23+
# reticulate::py_install("pmlb", pip = TRUE)
24+
config <- reticulate::py_config()
25+
system2(config$python, c("-m", "pip", "install", "--quiet", shQuote("../")))
1826
1927
```
2028

docs_sources/using-python.Rmd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22
title: "Using PMLB Python interface"
33
---
44

5+
6+
```{r message=FALSE}
7+
message("Current working directory: ", getwd())
8+
message("Contents of working directory: ", paste(dir(getwd()), collapse = ", "))
9+
```
10+
511
```{r setup, include=FALSE}
612
library(reticulate)
713
814
knitr::knit_engines$set(python = reticulate::eng_python)
915
knitr::opts_knit$set(progress = TRUE, verbose = TRUE, highlight = TRUE)
1016
reticulate::py_install(c("matplotlib", "scikit-learn", "seaborn"))
11-
reticulate::py_install("pmlb", pip = TRUE)
17+
# reticulate::py_install("pmlb", pip = TRUE)
18+
config <- reticulate::py_config()
19+
system2(config$python, c("-m", "pip", "install", "--quiet", shQuote("../")))
1220
1321
```
1422

0 commit comments

Comments
 (0)