Comments (2)
For XML, I can build just fine with 3.98-1.9 and 3.98-1.11.
For Rgraphviz version 2.22.0, the bundled graphviz software should not have contained src/graphviz/graphviz_version.h
. If you delete that file, or add it in the exclude argument of the srcs glob in your BUILD file, you will be able to build the package. I will suggest modifying the auto generated BUILD file, and maybe submit a PR to the Rgraphviz package to delete the checked in file for a longer term fix.
In general, it is not a good practice to modify source files during build. In the past, I have asked packages to stop doing this. In the ~300 R packages we use at GRAIL, the only packages that needed an override to the auto generated BUILD files were GLAD (needed a config_override
to say that the package directory is not called GLAD) and Rsamtools (needed post_install_files
).
Creating temporary files within the source tree is fine; bazel will not complain for that.
A quick workaround when you don't want to find a proper fix for a package would be to use --spawn_strategy=standalone
, but I do not want to encourage people writing configure scripts that modify source files.
from rules_r.
Thank you for this thorough answer! I wasn't happy with that either but thought about it out of necessity. You obviously have thought about it much more than I did, but for what it's worth here was my reasoning:
- Concerning the XML package, I built it with a custom version of libxml2 to not have to depend on the system libxml2. This required me to provide some custom R/supports.R. I was misled by https://github.com/omegahat/XML at HEAD and thought that R/supports.R was distributed with the package, and that I would have to overwrite it. Actually, it is not distributed with the current version on CRAN, so my custom R/supports.R would not have to overwrite anything and copy_srcs proved to be useless here.
- Concerning flowWorkspace, thank you for the workaround, I looked at the wrong place for the error.
from rules_r.
Related Issues (20)
- r_pkg use of cc_deps - does it use the includes directive of cc_library? HOT 4
- trouble building r_pkg depending on cc_library HOT 7
- how to install r check deps into system R library path HOT 1
- "tools" specified in the toolchain are not configured for r_unit_test HOT 1
- r_unit_test should be able to declare data dependencies
- Why not let Bazel compile C++ as well? HOT 8
- Shared objects are thrown out by R cmd build HOT 1
- ARM support HOT 2
- `r_pkg_test` does not seem to work with `pkg_name`
- Rewrite razel as gazelle language extension HOT 1
- Do not rely on users using `+=` in their package Makevars
- Update covr dependency to CRAN HOT 1
- File paths in coverage information are just the package name
- Setup Buildbuddy cache for Github Actions tests HOT 1
- Make source and binary archives byte reproducible
- Collect coverage trace from cc_deps
- Question on header paths HOT 4
- Seems like C_SO_LD_FLAGS has no effect when external *.so is included HOT 2
- Fix reproducibility tests for R 4.1.0 HOT 1
- r_toolchain to support setting r and rscript using Bazel target names/labels HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_r.