Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install in R studio #239

Open
samory22 opened this issue Jul 24, 2022 · 1 comment
Open

Cannot install in R studio #239

samory22 opened this issue Jul 24, 2022 · 1 comment

Comments

@samory22
Copy link

Hi,
I am new to R and I need to use the Clp solver, I am trying to install it as:

install.packages('https://github.com/coin-or/Clp')
Installing package into ‘C:/Users/eahme/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘https://github.com/coin-or/Clp’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

Then, tried:

install.packages('https://github.com/coin-or/Clp', repos = NULL, type = "win.binary")
Installing package into ‘C:/Users/eahme/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://github.com/coin-or/Clp'
downloaded 232 KB

Warning in install.packages :
error 1 in extracting from zip file
Warning in install.packages :
cannot open compressed file 'Clp/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection

So it seems this is not available for this R version? can anyone help, please? thanks

@tosttost
Copy link

I'm not sure what you're trying to do. This repository aka https://github.com/coin-or/Clp is not an R package so it is not suprising that it can't be installed. "install.packages" does not support installing random github projects. Even if it would be possible to deal with any (possibly non-standard) build system imaginable you won't be able to call a C++ library from R. This repository does not contain any code to enable calling Clp from R (or any other language other than C/C++).
Consult the help page of "install.packages" if necessary.
What you want is some R package wrapping Clp (or Cbc). According to https://cran.r-project.org/web/views/Optimization.html the package "rcbc" from https://github.com/dirkschumacher/rcbc might be useful. Please check this yourself, I can't tell whether it is useful, useless or even malicious.

Disclaimer: I have never used any Coin-or solver from R.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants