Skip to content

Commit 3590a17

Browse files
authored
πŸ”– LaminR 1.0 (#219)
* πŸ”– LaminR 1.0 * πŸ“ Fix wording
1 parent d90d32d commit 3590a17

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

β€Ždocs/changelog/2025.md

+36
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,42 @@
1414
.. role:: small
1515
```
1616

17+
## 2025-03-10 {small}`R 1.0.0`
18+
19+
✨ `laminr` now has feature parity with `lamindb`. [PR](https://github.com/laminlabs/laminr/pull/146) [@lazappi](https://github.com/lazappi)
20+
21+
- Run `install_lamindb()`, which will ensure `lamindb >= 1.2` in the Python environment used by `reticulate`.
22+
- Replace `db <- connect()` with `ln <- import_module("lamindb")` and see the "Detailed changes" dropdown.
23+
24+
The `ln` object is largely similar to the `db` object in `laminr` < v1 and matches `lamindb`'s Python API (`.` β†’ `$`).
25+
26+
:::{dropdown} Detailed changes
27+
28+
| What | Before | After |
29+
| --------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------ |
30+
| Connect to the default LaminDB instance | `db <- connect()` | `ln <- import_module("lamindb")` |
31+
| Start tracking | `db$track()` | `ln$track()` |
32+
| Get an artifact from another instance | `new_instance <- connect("another/instance"); new_instance$Artifact$get(...)` | `ln$Artifact$using("another/instance")$get(...)` |
33+
| Create an artifact from a path | `db$Artifact$from_path(path)` | `ln$Artifact(path)` |
34+
| Finish tracking | `db$finish()` | `ln$finish()` |
35+
36+
See the updated ["Get started"](https://laminr.lamin.ai/articles/laminr.html) vignette for more information.
37+
38+
User-facing changes:
39+
40+
- Add an `import_module()` function to import Python modules with additional functionality, e.g., `import_module("lamindb")` for **lamindb**
41+
- Add functions for accessing more `lamin` CLI commands
42+
- Add a new "Introduction" vignette that replicates the code from the Python **lamindb** introduction guide
43+
44+
Internal changes:
45+
46+
- Add an internal `wrap_python()` function to wrap Python objects while replacing Python methods with R methods as needed, leaving most work to **{reticulate}**
47+
- Update the internal `check_requires()` function to handle Python packages
48+
- Add custom `cache()`/`load()` methods to the `Artifact` class
49+
- Add custom `track()`/`finish()` methods to the **lamindb** module
50+
51+
:::
52+
1753
## 2025-03-09 {small}`db 1.2.0`
1854

1955
✨ Enable to auto-link entities to projects. [Guide](/track.ipynb#track-projects) [PR](https://github.com/laminlabs/lamindb/pull/2529) [@falexwolf](https://github.com/falexwolf)

β€Ždocs/changelog/soon/laminr.md

-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
- πŸ‘· Skip tests that require Python on CRAN [PR](https://github.com/laminlabs/laminr/pull/153) [@lazappi](https://github.com/lazappi)
2-
- Prep release 1.0.0 [PR](https://github.com/laminlabs/laminr/pull/152) [@rcannood](https://github.com/rcannood)
3-
- πŸ—οΈ Replace API with {reticulate} [PR](https://github.com/laminlabs/laminr/pull/146) [@lazappi](https://github.com/lazappi)
4-
- 🚸 Automatically refresh user tokens [PR](https://github.com/laminlabs/laminr/pull/145) [@lazappi](https://github.com/lazappi)
5-
- ⬆️ Bump R dependency to >= 4.1 [PR](https://github.com/laminlabs/laminr/pull/142) [@lazappi](https://github.com/lazappi)
6-
- πŸ‘· Add rhub GHA workflow [PR](https://github.com/laminlabs/laminr/pull/141) [@lazappi](https://github.com/lazappi)

0 commit comments

Comments
Β (0)