Skip to content

Commit

Permalink
Add links and fix nits for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Sep 26, 2023
1 parent 83b5a0d commit c1c78b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ pak::pak()

### Developing with Extensions
If you wish to build or add extensions to the R package you first need to build duckdb with the
`extension_static_build` flag. The following commands allow you to add the httpfs extension to
a duckdb R build. See the [extension ReadMe](https://github.com/duckdb/duckdb/tree/master/extension#readme) for more
information about extensions
`extension_static_build` flag. The following commands allow you to add the [`httpfs` extension](https://duckdb.org/docs/extensions/httpfs) to
a DuckDB R build.
```sh
cd duckdb/
EXTENSION_STATIC_BUILD=1 make
```
Then in R
Then in R, run:
```r
library(duckdb)
con <- DBI::dbConnect(duckdb(config=list('allow_unsigned_extensions'='true')))
dbExecute(con, "LOAD '{{path_to_duckdb}}/build/release/extension/httpfs/httpfs.duckdb_extension'")
```

For more information about using extensions, see the [documentation on extensions](https://duckdb.org/docs/extensions/overview).
For instructions on building them, see [extension README](https://github.com/duckdb/duckdb/tree/main/extension#readme).
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ revdepcheck::revdep_check(num_workers = 8, env=c(`MAKEVARS`="-j8"))
## Source Package
The R package does not automatically pick up the DuckDB version from the git tag. Make sure the file `DESCRIPTION` in the master branch has the `Version` entry that *you want to create*.

It's important that package builds are created from the main branch of the duckdb/duckdb repo (not of a fork) because otherwise the git revision ids used to install extensions are wrong.
It's important that package builds are created from the `main` branch of the [duckdb/duckdb repository](https://github.com/duckdb/duckdb) (not of a fork) because otherwise the git revision ids used to install extensions are wrong.

You can get the R source tarball either from the build artifacts (r-package-source) or from a GitHub release after CI finishes (`duckdb_[version].tar.gz`).

Expand Down

0 comments on commit c1c78b5

Please sign in to comment.