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

Sameh M. Abdulah @@meh@@bdu|@h @end|ng |rom k@u@t@edu@@@
Mon Apr 8 19:02:10 CEST 2019


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 this inside my package so that CRAN can execute it by default.

--Sameh

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list