dotenv_example.R

# example of how to use .env. The actual .env file is gitignored so you have to make your version from the .env.example template.
# If you need to add more inputs, be sure to update the example file with placeholders.

require(dotenv)
dotenv::load_dot_env(file=".env") #change the file name from the default if you want to use a different file in a script

#load the environment parameters that you care about into the relevant variables
igraph_path <- Sys.getenv("IGRAPH_PATH")
r_architecture <- Sys.getenv("R_ARCH")

#here's all the variables in the environment
Sys.getenv()
NCBI-Hackathons/Metabolomics-Data-Portal documentation built on May 31, 2019, 9:59 a.m.