Skip to content

[R] Extra features not found when Arrow is detected with pkg #34228

Closed

Description

@westonpace

Describe the bug, including details regarding any error messages, version, and platform.

I am well beyond my depth here but I was having trouble getting R to detect that my Arrow build had the datasets feature enabled (I don't normally build R but built it recently to debug an issue and ran into this).

I get the message echo "*** Arrow C++ libraries found via pkg-config at $FOUND_LIB_DIR" so R is finding Arrow that way. However, later, it seems to want to find the extra features in this way:

  # Check for features
  ARROW_OPTS_CMAKE="$LIB_DIR/cmake/Arrow/ArrowOptions.cmake"

  arrow_built_with() {
    # Function to check cmake options for features
    grep -i 'set('"$1"' "ON")' $ARROW_OPTS_CMAKE >/dev/null 2>&1
  }

Since LIB_DIR is unset it does not find the ArrowOptions.cmake file (even though I have one and it is installed). I have a fix that sets LIB_DIR in the pkg-config path and will create a PR but I have no idea if that is the best fix.

Component(s)

R

Activity

  1. added a commit that references this issue on Feb 17, 2023
  2. added this to the 12.0.0 milestone on Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions