R: laminr

R client for LaminDB [source].

Install the laminr package.

install.packages("laminr", dependencies = TRUE)

Create a LaminDB instance:

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

Or if you have write access to an instance, login and connect to it:

laminr::lamin_login()
laminr::lamin_connect("<account>/<instance>")

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

  • lamin_settings