| neon_db | R Documentation | 
Cache-able duckdb database connection
neon_db(
  dir = neon_db_dir(),
  read_only = TRUE,
  memory_limit = getOption("duckdb_memory_limit", NA),
  ...
)
| dir | Location where files should be downloaded. By default will
use the appropriate applications directory for your system
(see  | 
| read_only | allow concurrent connections by enforcing read_only. See details. | 
| memory_limit | Set a memory limit for duckdb, in GB.  This can
also be set for the session by using options, e.g.
 | 
| ... | additional arguments to dbConnect | 
Creates a connection to a permanent duckdb database
instance in the provided directory (see neon_dir()).  This
connection is also cached, so that code which repeatedly calls
[neon_db] will not stall or hang.  Only read_only connections
will be cached.
NOTE: [duckdb::duckdb()] can only support a single read-write connection
at a time.  The default option of read_only = TRUE allows
multiple connections. [neon_store()] will automatically set this to
FALSE to allow data import.
# tempfile used for illustration only
neon_db(tempfile())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.