On Sat, Dec 5, 2015 at 9:43 PM, arnaud gaboury <arnaud.gabo...@gmail.com> wrote: > > On Sat, Dec 5, 2015, 9:39 PM peter dalgaard <pda...@gmail.com> wrote: > > >> On 05 Dec 2015, at 18:07 , arnaud gaboury <arnaud.gabo...@gmail.com> >> wrote: >> >> In my shell environment, I have set a path to R_PROFILE_USER. The >> file, Rprofile.R, is a collection of small hacks. >> >> I want to build rstudio-server from source. Best is to $ unset >> R_PROFILE_USER before. Unfortunately, this has no effect on my system. >> >> ----------------------------------------------- >> poisonivy@poppy ➤➤ ~ % R >> >> *** Successfully loaded .Rprofile *** >> >> Welcome back poisonivy >> working directory is: /home/poisonivy >> poisonivy@poppy [R] >> ------------------------------------- >> >> As you can see, R is still behaving like the profile is used. What is >> annoying, is that Cmake will at one point not find my LibR. Error >> message: missing LIBR_LIBRARIES). The Cmake command is this one: >> >> ----------------------------------------- >> % R --slave --no-save -e "cat(R.home('lib'))" >> >> *** Successfully loaded .Rprofile *** >> >> /usr/lib64/R/libGoodbye poisonivy Sat Dec 5 18:03:06 2015 >> ---------------------------------------------- >> >> and as you can see, the result is polluated by my profile. I can't >> edit Cmake file to add "--vanilla" as they are generated each time I >> start cmake. >> >> Even deleting my Rprofile.R file, the environment still persists. I >> have no idea why this behavior. >> >> Any hints why I can't unset my profile user ? > > Umm, it said that it loaded .Rprofile, not Rprofile.R. Any chance that you > have similar code in two places? (~/.Rprofile and ./.Rprofile being the most > obvious suspects). > > That is my first thought. As for the file, I made a typo in my post. It is > indeed Rprofile.r ( r lower case). That could explain the welcome message.
I finally found the culprite: /usr/lib64/R/etc/Rprofile.site :-) > > > -pd > >> >> Thank you. >> -- >> >> google.com/+arnaudgabourygabx >> >> ______________________________________________ >> R-devel@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Email: pd....@cbs.dk Priv: pda...@gmail.com > > > > > > -- google.com/+arnaudgabourygabx ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel