Re: [R-pkg-devel] set PKG_CONFIG_PATH before installing a package

2019-04-09 Thread Sameh M. Abdulah
Thanks Travers and Dirk for your feedbacks. —Sameh From: Travers Ching Sent: Monday, April 8, 2019 10:52 PM To: Dirk Eddelbuettel Cc: Sameh M. Abdulah; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] set PKG_CONFIG_PATH before installing a package What

Re: [R-pkg-devel] set PKG_CONFIG_PATH before installing a package

2019-04-08 Thread Travers Ching
What Dirk said! I'd also just add that it's useful to have a fallback in case pkg-config fails, e.g., compile what you need from source. The configure script in RcppRedis looks like a good example of that. Travers Travers On Mon, Apr 8, 2019 at 12:14 PM Dirk Eddelbuettel wrote: > > > On 8 Ap

Re: [R-pkg-devel] set PKG_CONFIG_PATH before installing a package

2019-04-08 Thread Dirk Eddelbuettel
On 8 April 2019 at 10:59, Travers Ching wrote: | I think the correct way to do it is through the configure script. See | for example the Cairo package that uses pkg-config. Configure scripts | are slightly hard to work through in my experience, but are worth it | if you need customization of t

Re: [R-pkg-devel] set PKG_CONFIG_PATH before installing a package

2019-04-08 Thread Travers Ching
I think the correct way to do it is through the configure script. See for example the Cairo package that uses pkg-config. Configure scripts are slightly hard to work through in my experience, but are worth it if you need customization of the installation environment. Travers On Mon, Apr 8, 201

[R-pkg-devel] set PKG_CONFIG_PATH before installing a package

2019-04-08 Thread Sameh M. Abdulah
I am using this command to set an environment variable ` Sys.setenv(PKG_CONFIG_PATH=paste(Sys.getenv('PKG_CONFIG_PATH'),paste(.libPaths(),'my_package/lib/pkgconfig',sep='/',collapse=':'),sep=':'));’ before install my package. It works fine if I run it before installing my package. How can I do t