R: laminr¶
R client for LaminDB [source].
Install the laminr package.
install.packages("laminr", dependencies = TRUE)
Create a LaminDB instance:
lc <- import_module("lamin_cli")
lc$init(storage = "./mydata", modules = "bionty")
Or if you have write access to an instance, login and connect to it:
lc$login()
lc$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 $.
To access the lamin CLI functionality, import the lamin_cli module:
lc <- import_module("lamin_cli")
lc$init()
lc$connect()
lc$disconnect()
lc$login()
lc$logout()
lc$save()
lc$delete()