Re: [R-pkg-devel] Executable file warning in CRAN check

2019-04-08 Thread Travers Ching
Thanks Sebastian, I'll give it a shot. It seems weird that I can't replicate the warning on a mac laptop, or any other system. Travers On Mon, Apr 8, 2019 at 2:27 PM Sebastian Meyer wrote: > > No false positive. This file is indeed marked as an executable file, see > also at https://github.com/

Re: [R-pkg-devel] Executable file warning in CRAN check

2019-04-08 Thread Sebastian Meyer
No false positive. This file is indeed marked as an executable file, see also at https://github.com/cran/qs/blob/0.14.1/src/LZ4/LICENSE, which says > Executable File | 25 lines (20 sloc) | 1.28 KB On a Unix-based system you could do > chmod -x src/LZ4/LICENSE to remove the executable bit from

[R-pkg-devel] Executable file warning in CRAN check

2019-04-08 Thread Travers Ching
I see the following warning on CRAN: Result: WARN Found the following executable file: src/LZ4/LICENSE Source packages should not contain undeclared executable files. See section ‘Package structure’ in the ‘Writing R Extensions’ manual. https://cran.r-project.org/web/checks/check_

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

Re: [R-pkg-devel] Use lpSolve to another R package

2019-04-08 Thread Uwe Ligges
On 08.04.2019 12:19, Τόλης Χαλκής wrote: Dear all, We have developed an R package written in C++ with Rcpp wrappers https://github.com/GeomScale/volume_approximation We use the C code from lpSolveAPI ( https://cran.r-project.org/web/packages/lpSolveAPI/index.html). We have added the code wit

[R-pkg-devel] Use lpSolve to another R package

2019-04-08 Thread Τόλης Χαλκής
Dear all, We have developed an R package written in C++ with Rcpp wrappers https://github.com/GeomScale/volume_approximation We use the C code from lpSolveAPI ( https://cran.r-project.org/web/packages/lpSolveAPI/index.html). We have added the code with no changes in folder ./src/lp_solve. We wan