This vignette focuses on Snowflake Workspace
Notebooks: how skiLift fits the Python + %%R
model, what to install first, and how ADBC
(adbcsnowflake) behaves behind the internal SPCS gateway.
For general DBI usage and authentication modes, see
vignette("getting-started", package = "skiLift").
%%R cells run R via rpy2; skiLift
in R uses HTTPS like anywhere else.dbConnect(Snowflake()) in R succeeds
when the environment variables Workspace / setup_notebook()
export are present (see the getting-started vignette, Snowflake
Workspace Notebooks section).Run your Python bootstrap (for example
setup_notebook() from sfnb_setup.py)
before the first %%R cell that loads
skiLift.
adbcsnowflake)ADBC is optional. When
adbcsnowflake and
adbcdrivermanager are installed,
skiLift can use Arrow-native paths for reads and bulk writes.
Building adbcsnowflake requires a Go
compiler on the machine where install.packages()
runs.
In Workspace, install tooling from the
Python / micromamba side so PATH and compilers are
consistent. Do not rely on a minimal PATH inside a bare
%%R cell to find Go: follow the bootstrap script for your
stack (many teams use sfnb-multilang with
an --adbc or equivalent preset).
External Access Integration (EAI) must allow every
HTTP redirect needed to download R packages and Go modules (for example
R-universe / CDN and proxy.golang.org /
storage.googleapis.com). Your Snowflake admin can compare
hosts against network-rule documentation for the snowflake-notebook-multilang
toolkit.
SNOWFLAKE_HOST)From Workspace containers, skiLift and ADBC can use the
internal gateway (SNOWFLAKE_HOST) with the
container OAuth token. You do not need
the public *.snowflakecomputing.com URL for routine
Snowflake traffic when the session is wired correctly.
Bulk write routing (upload_method = "auto", thresholds,
fallbacks) is described in
vignette("getting-started", package = "skiLift")
(Bulk Write Methods). Tuning options use R options such
as skiLift.upload_method and
skiLift.bulk_write_threshold.
The authoritative engineering note for Workspace + ADBC
(architecture, redirect chains, benchmarks, PAT fallbacks for
external hosts) ships in the skiLift repository as
WORKSPACE_ADBC.md:
https://github.com/posit-dev/skiLift/blob/main/WORKSPACE_ADBC.md
If you use skiPatrol in the same notebook, DBI
access from R can share credentials via
skiPatrol::sfr_dbi_connection(). See
vignette("workspace-notebooks", package = "skiPatrol").