laminr

R client for LaminDB [source].

For setup, install the laminr and lamindb packages and connect to a LaminDB instance.

install.packages("laminr", dependencies = TRUE)  # install the laminr package from CRAN
laminr::install_lamindb(extra_packages = c("bionty"))  # install lamindb & bionty for use via reticulate
laminr::lamin_login()  # <-- you can skip this for local & self-hosted instances
laminr::lamin_connect("<account>/<instance>")  # <-- replace with your instance
I don’t have write access to an instance.

Here’s how to create a local instance.

laminr::lamin_init(storage = "./mydata", modules = c("bionty"))

For more detailed instructions, see Setting up LaminR.

In an R session, create the central API object as follows.

library(laminr)
ln <- import_module("lamindb")

The ln object the offers the full lamindb API and can be used in the same way up to replacing Python’s . with R’s $.

In addition to lamindb’s functionality, laminr exposes some functionality of the CLI to ease managing the Python environment used by reticulate.

  • lamin_connect

  • lamin_init

  • lamin_delete

  • lamin_disconnect

  • lamin_login

  • lamin_logout

  • lamin_save

  • install_lamindb