Comments (17)
For rhub you need to do a PR to https://github.com/r-hub/sysreqsdb with a file that specifies that maps your SystemRequirements
to the required package name on each system.
Building on windows it difficult. We probably need to build the libs ourselves and then publish them on https://github.com/rwinlib. Maybe I'll have a look next week when I have time.
from rcbc.
Well that's up to the maintainer. But you can install it from Github on Windows:
devtools::install_github("dirkschumacher/rcbc")
from rcbc.
@jeroen how would we further setup the packages to a) build it on windows (appveyor; win-builder) and b) use r-hub? Thanks again for your help. This is my first package that uses external dependencies and it is cool to see how that works.
from rcbc.
Hi,
I am trying to test the package on Mac. It works fine if installed from Github, but I cannot pass the Build & Reload
stage if code is loaded in RStudio.
I get this error:
installing to /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rcbc/libs
...
** testing if installed package can be loaded
Error: package or namespace load failed for ‘rcbc’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rcbc/libs/rcbc.so':
May be you already know how to fix this?
Thanks
Bulat
from rcbc.
I fixed an issue with Rcpp
. Maybe that solves it. Apart from that I am planning to use the C interface of CBC to remove the Rcpp
dependency.
from rcbc.
It worked, I was able to build and run tests.
Thank you very much for prompt response!
from rcbc.
@jeroen @dirkschumacher just checking if you had any luck with windows binaries for CBC?
This seems to be the only issue that blocks CRAN release.
from rcbc.
from rcbc.
They are already there? Did you try it?
from rcbc.
@jeroen so we have this: https://github.com/rwinlib/cbc which is great!
Do we need to do anything else for package to build and also set up an appveyor to build on windows?
from rcbc.
Ok, I will just put commit here for reference: 4c6b39d
from rcbc.
Appveyor is already setup. The link is in the top of the readme.
from rcbc.
In this case issue should be closed and package can submitted to CRAN??
from rcbc.
@jeroen That is great, thank you for confirming!
@dirkschumacher Do you think this issue can be closed now?
from rcbc.
@jeroen there is one warning actually if I run devtools::build_win(version = "R-devel")
:
checking whether package 'rcbc' can be installed ... WARNING
Found the following significant warnings:
cpp_cbc_solve.cpp:47:29: warning: ISO C++ forbids variable length array 'argList' [-Wvla]
See 'd:/RCompile/CRANguest/R-devel/rcbc.Rcheck/00install.out' for details.
I am not an expert on c/c++, is that easy to fix?
from rcbc.
Yes he can use a std::vector<std::string>
instead of a const char * argList[nArgs]
from rcbc.
I guess this should be noted on CRAN submission as const char * args
is the type of the CbcMain1
external function and I don't see how to get round it...
@jeroen thank you!
from rcbc.
Related Issues (20)
- using rcbc in a shiny app / windows HOT 1
- Cannot be installed behind proxy HOT 1
- rcbc.zip or rcbc.tar.gz - How does one install rcbc on Windows 10? HOT 2
- Row constraints are not being followed by CBC HOT 2
- Support row/column duals
- Pass control argumnets with rcbc HOT 1
- Installation fails (Windows 10, R v4.0, RTools v4.0.0) HOT 31
- Installation Fails on Mac OS X 10.15, with R 4.0 HOT 1
- using newer cbc module HOT 1
- Installation fails with R-devel
- Sensitivity Analysis HOT 1
- Automatic readme build creates an Readme.html file HOT 3
- C++ code throws warning during CRAN checks
- "MILP" in package title throws NOTE in CRAN checks
- solver returns not integer decision variables HOT 3
- inconsistency in example for cbc_solve() HOT 2
- no match for threads argument HOT 2
- Compilation failure on Windows CI and R devel HOT 13
- all(is.finite(mat)) throws an error with a sufficiently large matrix HOT 2
- Failed installation on MacOS due to missing CBC HOT 4
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 rcbc.