mosek_attachbuilder {Rmosek} | R Documentation |
Attach builder functions to the search path (install,update,remove)
Description
This function attach
a database to the search path with utilities
to manage Rmosek in respect to the system requirement (i.e., MOSEK):
install.rmosek | Install Rmosek package. |
update.rmosek | Update Rmosek package. |
remove.rmosek | Remove Rmosek package. |
These utilities are equivalent to, and accept the same arguments as,
install.packages
, update.packages
and
remove.packages
, differing only in default argument values
and the transmission of Rmosek-specific configuration variables (see details below).
Usage
mosek_attachbuilder(what_mosek_bindir,
pos=2L, name="Rmosek:builder", warn.conflicts=TRUE)
Arguments
what_mosek_bindir |
The path to the MOSEK 'bin' directory to build against. Should look like
|
pos |
Integer specifying position in |
name |
Name to use for the attached database. Names starting with |
warn.conflicts |
Logical. If |
Details
The attached *.rmosek functions (install, update, remove) wrap the corresponding utils::*.packages functions with autoconfigured default argument values:
pkgs | = "Rmosek" |
repos | = "https://download.mosek.com/R/<MOSEKMAJORVER>.<MOSEKMINORVER>" |
configuration variables:
MSK_BINDIR | MOSEK 'bin' directory. |
If empty, autoconfigured from mosek executable on PATH. | |
MSK_HEADERDIR | MOSEK 'h' directory. |
If empty, autoconfigured from 'MSK_BINDIR'. | |
MSK_LIB | MOSEK library file. |
If empty, autoconfigured from 'MSK_BINDIR'. | |
and installation styles:
using_pkgbuild | Logical. Whether to execute in the 'pkgbuild' environment |
as is recommended on Windows to resolve Rtools. | |
using_sysenv | Logical. Whether to transmit configuration variables via |
Sys.setenv() as opposed to configure.vars. | |
Examples
## Not run:
#
# Build Rmosek for the given MOSEK Optimization Suite.
#
mosek_attachbuilder("<MSKHOME>/mosek/<MSKVERSION>/tools/platform/<PLATFORM>/bin")
install.rmosek()
#
# Update Rmosek for the MOSEK Optimization Suite of the last build (if any).
#
mosek_attachbuilder() # Note: path is read from packageDescription("Rmosek")
update.rmosek()
#
# Build Rmosek (from offline package file) for the given MOSEK Optimization Suite.
#
mosek_attachbuilder("<MSKHOME>/mosek/<MSKVERSION>/tools/platform/<PLATFORM>/bin")
install.rmosek("<RMOSEKPATH>/Rmosek.tar.gz", repos=NULL)
## End(Not run)