- [GitHub - ollama/ollama-python: Ollama Python library](https://github.com/ollama/ollama-python) - [ollama/docs/api.md at main · ollama/ollama · GitHub](https://github.com/ollama/ollama/blob/main/docs/api.md#list-local-models) - [GitHub - hauselin/ollama-r: R library to run Ollama language models locally](https://github.com/hauselin/ollama-r) # Idea ```r # open R project .Rproj # bash: create new branch for feature git checkout -b featureX # add new branches for continuous testing on github .github/workflows/R-CMD-check.yaml # add the branch name to push and pull_request arrays on: push: branches: [main, master, dev, test] pull_request: branches: [main, master, dev, test] # https://r-pkgs.org/testing-basics.html library(devtools) library(usethis) library(urlchecker) library(pkgdown) # https://pkgdown.r-lib.org/articles/pkgdown.html load_all() # loads working/development version of library (different from `library(ollamar)`) packageVersion("ollamar") # verify correct version # run tests (devtools library) test() # work on code... # use github copilot to generate 95% of the documentation and generate test cases!!! # generate documentation for function: R Insert a roxygen comment for the current function # update README.Rmd (not README.md) document() # generate documentation build_readme() # knit README.me url_check() # check if all urls work build_site() # build the website (can take a bit of time) # main check to regularly run during development check() # MUST fix all bugs/errors/notes/warnings!!! # other things to update # _pkgdown.yml # NEWS.md # main check (slower and more complete check) check(remote = TRUE) check(remote = TRUE, manual = TRUE) # then push to repo git push ``` # References - [R Packages (2e)](https://r-pkgs.org/) - [Perform HTTP Requests and Process the Responses • httr2](https://httr2.r-lib.org/index.html) - [R package development in Positron - by Stephen Turner](https://blog.stephenturner.us/p/r-package-development-in-positron)