|
91 | 91 | ":::{tab-item} R\n",
|
92 | 92 | "\n",
|
93 | 93 | "```R\n",
|
94 |
| - "# laminr needs pip install 'lamindb'\n", |
95 | 94 | "install.packages(\"laminr\", dependencies = TRUE) # install the laminr package from CRAN\n",
|
| 95 | + "laminr::install_lamindb() # install lamindb for usage via reticulate\n", |
| 96 | + "laminr::lamin_connect(\"<account>/<instance>\") # <-- replace with your instance\n", |
96 | 97 | "library(laminr)\n",
|
97 | 98 | "\n",
|
98 |
| - "db <- connect() # connect to the instance you configured on the terminal\n", |
99 |
| - "db$track() # track a run of your notebook or script\n", |
100 |
| - "artifact <- db$Artifact$get(\"3TNCsZZcnIBv2WGb0001\") # get an artifact by uid\n", |
| 99 | + "ln <- import_module(\"lamindb\")\n", |
| 100 | + "ln$track() # track a run of your notebook or script\n", |
| 101 | + "artifact <- ln$Artifact$get(\"3TNCsZZcnIBv2WGb0001\") # get an artifact by uid\n", |
101 | 102 | "filepath <- artifact$cache() # cache the artifact on disk\n",
|
102 | 103 | "\n",
|
103 | 104 | "# do your work\n",
|
104 | 105 | "\n",
|
105 |
| - "db$Artifact.from_path(\"./my_dataset.csv\", key=\"my_results/my_dataset.csv\").save() # save a folder\n", |
106 |
| - "db$finish() # mark the run finished\n", |
| 106 | + "ln$Artifact(\"./my_dataset.csv\", key=\"my_results/my_dataset.csv\").save() # save a folder\n", |
| 107 | + "ln$finish() # mark the run finished\n", |
107 | 108 | "```\n",
|
108 | 109 | "\n",
|
109 | 110 | "Depending on whether you ran RStudio's notebook mode, you may need to save an html export for `.qmd` or `.Rmd` file via the command-line.\n",
|
|
0 commit comments