This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 7bacf87b chore(r): Update CI and READMEs for latest pkgbuild release 
(#869)
7bacf87b is described below

commit 7bacf87bf9d29a703b9929cdc15b255226583600
Author: Dewey Dunnington <[email protected]>
AuthorDate: Wed Jul 5 09:09:32 2023 -0300

    chore(r): Update CI and READMEs for latest pkgbuild release (#869)
    
    The latest pkgbuild release fixes a bug in version 1.4.1 that prevented
    installation from GitHub from working properly. Our driver packages
    currently can *only* be installed from GitHub and so this was a bit of a
    problem. Thankfully, this was fixed in 1.4.2 which was just released.
    This PR updates READMEs and CI with install instructions that actually
    work 😬 .
    
    You should be able to install any package using (e.g.):
    
    ```r
    # install.packages("pak")
    pak::pak("apache/arrow-adbc/r/adbcsqlite")
    ```
    
    If you didn't *just* install pak, you have update the internal version
    of pkgbuild and clean its build cache. I think I successfully got this
    down to two lines:
    
    ```r
    install.packages("pkgbuild", pak:::private_lib_dir())
    pak::cache_clean()
    ```
---
 .github/workflows/native-unix.yml   |  3 +--
 docs/source/driver/flight_sql.rst   |  4 ++--
 docs/source/driver/installation.rst | 10 ++++++++++
 docs/source/driver/postgresql.rst   |  4 ++--
 docs/source/driver/snowflake.rst    |  4 ++--
 docs/source/driver/sqlite.rst       |  4 ++--
 r/adbcdrivermanager/README.Rmd      | 11 +++++++++--
 r/adbcdrivermanager/README.md       | 13 +++++++++++--
 r/adbcflightsql/README.Rmd          | 11 +++++++++--
 r/adbcflightsql/README.md           | 13 +++++++++++--
 r/adbcpostgresql/README.Rmd         | 11 +++++++++--
 r/adbcpostgresql/README.md          | 13 +++++++++++--
 r/adbcsnowflake/README.Rmd          | 11 +++++++++--
 r/adbcsnowflake/README.md           | 13 +++++++++++--
 r/adbcsqlite/README.Rmd             | 11 +++++++++--
 r/adbcsqlite/README.md              | 13 +++++++++++--
 16 files changed, 119 insertions(+), 30 deletions(-)

diff --git a/.github/workflows/native-unix.yml 
b/.github/workflows/native-unix.yml
index 32d24a07..92e8b7b6 100644
--- a/.github/workflows/native-unix.yml
+++ b/.github/workflows/native-unix.yml
@@ -643,8 +643,7 @@ jobs:
 
       - uses: r-lib/actions/setup-r-dependencies@v2
         with:
-          # Pin of pkgbuild can be removed after version 1.4.2 is released
-          extra-packages: any::rcmdcheck, local::../adbcdrivermanager, 
github::r-lib/[email protected]
+          extra-packages: any::rcmdcheck, local::../adbcdrivermanager
           needs: check
           working-directory: r/${{ matrix.config.pkg }}
 
diff --git a/docs/source/driver/flight_sql.rst 
b/docs/source/driver/flight_sql.rst
index 37f32c27..db650620 100644
--- a/docs/source/driver/flight_sql.rst
+++ b/docs/source/driver/flight_sql.rst
@@ -75,8 +75,8 @@ Installation
 
       .. code-block:: r
 
-         # install.packages("remotes")
-         remotes::install_github("apache/arrow-adbc/r/adbcflightsql", build = 
FALSE)
+         # install.packages("pak")
+         pak::pak("apache/arrow-adbc/r/adbcflightsql")
 
 Usage
 =====
diff --git a/docs/source/driver/installation.rst 
b/docs/source/driver/installation.rst
index 6ca06cc6..4490d241 100644
--- a/docs/source/driver/installation.rst
+++ b/docs/source/driver/installation.rst
@@ -76,3 +76,13 @@ From conda-forge_:
 - ``mamba install adbc-driver-flightsql``
 - ``mamba install adbc-driver-postgresql``
 - ``mamba install adbc-driver-sqlite``
+
+R
+======
+
+Install the appropriate driver package from GitHub:
+
+.. code-block:: r
+
+   # install.packages("pak")
+   pak::pak("apache/arrow-adbc/r/adbcsqlite")
diff --git a/docs/source/driver/postgresql.rst 
b/docs/source/driver/postgresql.rst
index a1ee2e62..4b3c2050 100644
--- a/docs/source/driver/postgresql.rst
+++ b/docs/source/driver/postgresql.rst
@@ -75,8 +75,8 @@ Installation
 
       .. code-block:: r
 
-         # install.packages("remotes")
-         remotes::install_github("apache/arrow-adbc/r/adbcpostgresql", build = 
FALSE)
+         # install.packages("pak")
+         pak::pak("apache/arrow-adbc/r/adbcpostgresql")
 
 Usage
 =====
diff --git a/docs/source/driver/snowflake.rst b/docs/source/driver/snowflake.rst
index 721bb665..d5ab24c4 100644
--- a/docs/source/driver/snowflake.rst
+++ b/docs/source/driver/snowflake.rst
@@ -60,8 +60,8 @@ Installation
 
       .. code-block:: shell
 
-         # install.packages("remotes")
-         remotes::install_github("apache/arrow-adbc/r/adbcsnowflake", build = 
FALSE)
+         # install.packages("pak")
+         pak::pak("apache/arrow-adbc/r/adbcsnowflake")
 
 Usage
 =====
diff --git a/docs/source/driver/sqlite.rst b/docs/source/driver/sqlite.rst
index 8221f5ef..ff439708 100644
--- a/docs/source/driver/sqlite.rst
+++ b/docs/source/driver/sqlite.rst
@@ -57,8 +57,8 @@ Installation
 
       .. code-block:: shell
 
-         # install.packages("remotes")
-         remotes::install_github("apache/arrow-adbc/r/adbcsqlite", build = 
FALSE)
+         # install.packages("pak")
+         pak::pak("apache/arrow-adbc/r/adbcsqlite")
 
    .. tab-item:: Go
       :sync: go
diff --git a/r/adbcdrivermanager/README.Rmd b/r/adbcdrivermanager/README.Rmd
index 3f71a152..439268cb 100644
--- a/r/adbcdrivermanager/README.Rmd
+++ b/r/adbcdrivermanager/README.Rmd
@@ -50,8 +50,15 @@ install.packages("adbcdrivermanager")
 You can install the development version of adbcdrivermanager from 
[GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcdrivermanager", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcdrivermanager")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable 
installation from GitHub via pak. Depending on when you installed pak, you may 
need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcdrivermanager/README.md b/r/adbcdrivermanager/README.md
index 321d807a..231fc8a4 100644
--- a/r/adbcdrivermanager/README.md
+++ b/r/adbcdrivermanager/README.md
@@ -40,8 +40,17 @@ You can install the development version of adbcdrivermanager 
from
 [GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcdrivermanager", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcdrivermanager")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable
+installation from GitHub via pak. Depending on when you installed pak,
+you may need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcflightsql/README.Rmd b/r/adbcflightsql/README.Rmd
index d5541826..759e8992 100644
--- a/r/adbcflightsql/README.Rmd
+++ b/r/adbcflightsql/README.Rmd
@@ -43,8 +43,15 @@ to the Arrow Database Connectivity (ADBC) FlightSQL driver.
 You can install the development version of adbcflightsql from 
[GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcflightsql", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcflightsql")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable 
installation from GitHub via pak. Depending on when you installed pak, you may 
need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcflightsql/README.md b/r/adbcflightsql/README.md
index 5d5fa577..e61bfc02 100644
--- a/r/adbcflightsql/README.md
+++ b/r/adbcflightsql/README.md
@@ -31,8 +31,17 @@ You can install the development version of adbcflightsql from
 [GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcflightsql", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcflightsql")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable
+installation from GitHub via pak. Depending on when you installed pak,
+you may need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcpostgresql/README.Rmd b/r/adbcpostgresql/README.Rmd
index 5020ff51..d34b37be 100644
--- a/r/adbcpostgresql/README.Rmd
+++ b/r/adbcpostgresql/README.Rmd
@@ -43,8 +43,15 @@ to the Arrow Database Connectivity (ADBC) PostgreSQL driver.
 You can install the development version of adbcpostgresql from 
[GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcpostgresql", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcpostgresql")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable 
installation from GitHub via pak. Depending on when you installed pak, you may 
need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcpostgresql/README.md b/r/adbcpostgresql/README.md
index dc7121c5..b91d2e3e 100644
--- a/r/adbcpostgresql/README.md
+++ b/r/adbcpostgresql/README.md
@@ -31,8 +31,17 @@ You can install the development version of adbcpostgresql 
from
 [GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcpostgresql", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcpostgresql")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable
+installation from GitHub via pak. Depending on when you installed pak,
+you may need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcsnowflake/README.Rmd b/r/adbcsnowflake/README.Rmd
index 7594d3a4..dacb9e1a 100644
--- a/r/adbcsnowflake/README.Rmd
+++ b/r/adbcsnowflake/README.Rmd
@@ -43,8 +43,15 @@ to the Arrow Database Connectivity (ADBC) Snowflake driver.
 You can install the development version of adbcsnowflake from 
[GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcsnowflake", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcsnowflake")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable 
installation from GitHub via pak. Depending on when you installed pak, you may 
need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcsnowflake/README.md b/r/adbcsnowflake/README.md
index eedb0578..bdf038d0 100644
--- a/r/adbcsnowflake/README.md
+++ b/r/adbcsnowflake/README.md
@@ -31,8 +31,17 @@ You can install the development version of adbcsnowflake from
 [GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcsnowflake", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcsnowflake")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable
+installation from GitHub via pak. Depending on when you installed pak,
+you may need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcsqlite/README.Rmd b/r/adbcsqlite/README.Rmd
index 430843af..a59c1ffc 100644
--- a/r/adbcsqlite/README.Rmd
+++ b/r/adbcsqlite/README.Rmd
@@ -43,8 +43,15 @@ to the Arrow Database Connectivity (ADBC) SQLite driver.
 You can install the development version of adbcsqlite from 
[GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcsqlite", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcsqlite")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable 
installation from GitHub via pak. Depending on when you installed pak, you may 
need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example
diff --git a/r/adbcsqlite/README.md b/r/adbcsqlite/README.md
index a6ca5e49..d5d8eb73 100644
--- a/r/adbcsqlite/README.md
+++ b/r/adbcsqlite/README.md
@@ -31,8 +31,17 @@ You can install the development version of adbcsqlite from
 [GitHub](https://github.com/) with:
 
 ``` r
-# install.packages("remotes")
-remotes::install_github("apache/arrow-adbc/r/adbcsqlite", build = FALSE)
+# install.packages("pak")
+pak::pak("apache/arrow-adbc/r/adbcsqlite")
+```
+
+ADBC drivers for R use a relatively new feature of pkgbuild to enable
+installation from GitHub via pak. Depending on when you installed pak,
+you may need to update its internal version of pkgbuild.
+
+``` r
+install.packages("pkgbuild", pak:::private_lib_dir())
+pak::cache_clean()
 ```
 
 ## Example

Reply via email to