title: How to export environment variables during R package installation?
body: <p>I have an <code>R</code> package which depends on a third party library. I need to export an environment variable ( a path) in order to be able to use the package. I do not want to do this manually and want to provide the value for the environment variable as an argument during the package installation and then set the environment variable for my system. Is it possible by using a configure.ac script (using autotools)? I can get the value of the arguments provided during the installation in my configure.ac but I am not able to set the value of environment variable. How should I set the environment variable here? I am open to other approaches too.</p>