if (FALSE) {
# Import Lamin modules
lc <- import_module("lamin_cli")
ln <- import_module("lamindb")
# Examples of replacing CLI functions with the lamin_cli module
}
if (FALSE) {
# Connect to a LaminDB instance
lamin_connect(instance)
# ->
lc$connect(instance)
}
if (FALSE) {
# Disconnect from a LaminDB instance
lamin_disconnect()
# ->
lc$disconnect()
}
if (FALSE) {
# Log in as a LaminDB user
lamin_login(...)
# ->
lc$login(...)
}
if (FALSE) {
# Log out of LaminDB
lamin_logout()
# ->
lc$logout()
}
if (FALSE) {
# Create a new LaminDB instance
lamin_init(...)
# ->
lc$init(...)
}
if (FALSE) {
# Create a temporary LaminDB instance
lamin_init_temp(...)
# ->
create_temporary_instance()
}
if (FALSE) {
# Delete a LaminDB entity
lamin_delete(...)
# ->
lc$delete(...)
}
if (FALSE) {
# Save to a LaminDB instance
lamin_save(...)
# ->
lc$save(...)
}
if (FALSE) {
# Access Lamin settings
lamin_settings()
# ->
ln$setup$settings
# OR
ln$settings
# Alternatively
get_current_lamin_settings()
}
Run the code above in your browser using DataLab