Can somebody explain to me please in a simple language what path should be in Sys.getenv(‘PATH’) command and how to change it permanently?
I faced the issues with running Bayesian models using package brms on Mac (I downloaded package rstan and fixed C++ compiler and installed Xcode, all that seems to work fine). Here (Error occurred during calling the sampler) I read that PATH should be changed if models with brms are not compiled ( I have the same problem as discussed there) but I don’t understand how it should look like for me. Sys.getenv(‘PATH’) right now gives me directory inside Postgres SQL which I guess is wrong (I worked earlier with postgres database).
Sys.getenv(‘PATH’)  “/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Postgres.app/Contents/Versions/latest/bin”