Skip to content

Commit

Permalink
debug github action
Browse files Browse the repository at this point in the history
- running on rocker r-base results in compliation error about duplicate
  function definition for static cpp11::function readbin::read_bin in
  class definition / auto readbin::readbin in rjsoncons.cpp
  • Loading branch information
mtmorgan committed Feb 21, 2024
1 parent 5926974 commit 3e2f7a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,22 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-pandoc@v2.7.2

- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r@v2.7.2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
- name: Compiler
run: |
g++ --version
- uses: r-lib/actions/[email protected]
with:
extra-packages: any::pkgdown, local::., tidyr, jqr
cache-version: 2
extra-packages: any::pkgdown, any::dplyr, any::tidyr, any::jqr, local::.
needs: website

- name: Build site
Expand Down
2 changes: 1 addition & 1 deletion src/rjsoncons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using namespace jsoncons; // convenience
using namespace cpp11::literals; // _nm

auto readbinbuf::read_bin = cpp11::package("base")["readBin"];
cpp11::function readbinbuf::read_bin = cpp11::package("base")["readBin"];

[[cpp11::register]]
std::string cpp_version()
Expand Down

0 comments on commit 3e2f7a8

Please sign in to comment.