| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/overwrite_shpkg.r |
| 3 |
\name{Overwrite shpkg} |
| 4 |
\alias{Overwrite shpkg} |
| 5 |
\alias{overwrite.shpkg.rpath} |
| 6 |
\title{Overwrite rpath of linked shared library in osx} |
| 7 |
\usage{ |
| 8 |
overwrite.shpkg.rpath( |
| 9 |
mylib = NULL, |
| 10 |
mypkg = "JuniperKernel", |
| 11 |
linkingto = "pbdZMQ", |
| 12 |
shlib = "zmq" |
| 13 |
) |
| 14 |
} |
| 15 |
\arguments{ |
| 16 |
\item{mylib}{the path where \code{mypkg} was installed (default \code{NULL} that will |
| 17 |
search from R's path)} |
| 18 |
|
| 19 |
\item{mypkg}{the package for where \code{mypkg.so} will be checked or updated} |
| 20 |
|
| 21 |
\item{linkingto}{the package for where \code{libshpkg*.dylib} is located} |
| 22 |
|
| 23 |
\item{shlib}{name of shlib to be searched for} |
| 24 |
} |
| 25 |
\description{ |
| 26 |
Overwrite rpath of linked shared library |
| 27 |
(e.g. \code{JuniperKernel/libs/JuniperKernel.so} |
| 28 |
in osx only. |
| 29 |
Typically, it is called by \code{.onLoad()} to update rpath if |
| 30 |
\code{pbdZMQ} or \code{pbdZMQ/libs/libzmq.*.dylib} was moved to |
| 31 |
a personal directory |
| 32 |
(e.g. the binary package was installed to a none default path). |
| 33 |
The commands \code{otool} and \code{install_name_tool} are required. |
| 34 |
Permission may be needed (e.g. \code{sudo}) to overwrite the shared |
| 35 |
library. |
| 36 |
} |
| 37 |
\examples{ |
| 38 |
\dontrun{ |
| 39 |
### Called by .onLoad() within "JuniperKernel/R/zzz.R" |
| 40 |
overwrite.shpkg.rpath(mypkg = "JuniperKernel", |
| 41 |
linkingto = "pbdZMQ", |
| 42 |
shlib = "zmq") |
| 43 |
} |
| 44 |
|
| 45 |
} |
| 46 |
\author{ |
| 47 |
Wei-Chen Chen \email{[email protected]}. |
| 48 |
|
| 49 |
Programming with Big Data in R Website: \url{https://pbdr.org/} |
| 50 |
} |
| 51 |
\keyword{compile} |