Giter VIP home page Giter VIP logo

Comments (17)

jeroen avatar jeroen commented on June 8, 2024 1

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.

jeroen avatar jeroen commented on June 8, 2024 1

Well that's up to the maintainer. But you can install it from Github on Windows:

devtools::install_github("dirkschumacher/rcbc")

from rcbc.

dirkschumacher avatar dirkschumacher commented on June 8, 2024

@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.

byapparov avatar byapparov commented on June 8, 2024

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.

dirkschumacher avatar dirkschumacher commented on June 8, 2024

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.

byapparov avatar byapparov commented on June 8, 2024

It worked, I was able to build and run tests.

Thank you very much for prompt response!

from rcbc.

byapparov avatar byapparov commented on June 8, 2024

@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.

rickyars avatar rickyars commented on June 8, 2024

from rcbc.

jeroen avatar jeroen commented on June 8, 2024

They are already there? Did you try it?

from rcbc.

byapparov avatar byapparov commented on June 8, 2024

@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.

byapparov avatar byapparov commented on June 8, 2024

Ok, I will just put commit here for reference: 4c6b39d

from rcbc.

jeroen avatar jeroen commented on June 8, 2024

Appveyor is already setup. The link is in the top of the readme.

from rcbc.

byapparov avatar byapparov commented on June 8, 2024

In this case issue should be closed and package can submitted to CRAN??

from rcbc.

byapparov avatar byapparov commented on June 8, 2024

@jeroen That is great, thank you for confirming!

@dirkschumacher Do you think this issue can be closed now?

from rcbc.

byapparov avatar byapparov commented on June 8, 2024

@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.

jeroen avatar jeroen commented on June 8, 2024

Yes he can use a std::vector<std::string> instead of a const char * argList[nArgs]

from rcbc.

byapparov avatar byapparov commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.