highspeed-glm-docs.Rmd 975 B

1234567891011121314151617181920212223242526272829
  1. ```{r, echo=FALSE, message=FALSE, include=FALSE}
  2. if (!requireNamespace("pacman")) install.packages("pacman")
  3. packages_cran <- c("here")
  4. pacman::p_load(char = packages_cran)
  5. if (basename(here::here()) == "highspeed"){
  6. path_root = here::here("highspeed-glm")
  7. } else {
  8. path_root = here::here()
  9. }
  10. ```
  11. ## First-level GLMs
  12. ### Main GLM workflow (`highspeed-glm-main.py`)
  13. ```{python, echo=TRUE, code=readLines(file.path(path_root, "code", "glm", "highspeed-glm-main.py")), eval=FALSE, python.reticulate=FALSE}
  14. ```
  15. ### Extra GLM functions ((`highspeed-glm-functions.py`))
  16. ```{python, echo=TRUE, code=readLines(file.path(path_root, "code", "glm", "highspeed_glm_functions.py")), eval=FALSE, python.reticulate=FALSE}
  17. ```
  18. ### Requirements
  19. The `requirements.txt` file lists the required packages which can be installed e.g., using `pip install -r requirements.txt`
  20. ```{bash, echo=TRUE, code=readLines(file.path(path_root, "code", "glm", "requirements.txt")), eval=FALSE}
  21. ```