From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laura Lazzati Subject: Re: [outreach] Help trying to create R package Date: Wed, 17 Oct 2018 14:50:14 -0300 Message-ID: References: <20181016074412.54757b18@alma-ubu> <20181016082350.75757e6b@alma-ubu> <20181017001851.71543cc9@alma-ubu> <20181017091750.1c408b8d@alma-ubu> <87y3aw339j.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCpyB-0002e0-Bl for guix-devel@gnu.org; Wed, 17 Oct 2018 13:50:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCpyA-0007DV-DP for guix-devel@gnu.org; Wed, 17 Oct 2018 13:50:55 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:41456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCpyA-0007Cm-4k for guix-devel@gnu.org; Wed, 17 Oct 2018 13:50:54 -0400 Received: by mail-pg1-x52b.google.com with SMTP id 23-v6so12876436pgc.8 for ; Wed, 17 Oct 2018 10:50:53 -0700 (PDT) In-Reply-To: <87y3aw339j.fsf@lassieur.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: clement@lassieur.org Cc: Guix-devel , Ricardo Wurmus On Wed, Oct 17, 2018 at 2:13 PM Cl=C3=A9ment Lassieur wrote: > > Hi Laura, > > Laura Lazzati writes: > > > You were right. I took a look at my .bashrc file, and I had an: > > export PATH=3D"/home/laura/.guix-profile/bin${PATH:+:}$PATH" > > I ran $guix pull, did the PATH export in my CLI, then checked the outpu= t of > > $which guix, that was the same that was mentioned by you, > > commented that previous line in .bashrc, > > added export PATH=3D"/home/laura/.config/guix/current/bin${PATH:+:}$PA= TH" > > and ran again the command to check the available R packages, made a > > diff with the previous one, and now at least r-bae appears. > > You should export environment variables such as PATH in > =E2=80=98~/.bash_profile=E2=80=99 instead of =E2=80=98~/.bashrc=E2=80=99.= :-) > > Quoting the documentation[1]: > > Users sometimes wrongfully augment environment variables such as > =E2=80=98PATH=E2=80=99 in their =E2=80=98~/.bashrc=E2=80=99 file. As= a consequence, when =E2=80=98guix > environment=E2=80=99 launches it, Bash may read =E2=80=98~/.bashrc=E2= =80=99, thereby > introducing =E2=80=9Cimpurities=E2=80=9D in these environment variabl= es. It is an > error to define such environment variables in =E2=80=98.bashrc=E2=80= =99; instead, > they should be defined in =E2=80=98.bash_profile=E2=80=99, which is s= ourced only by > log-in shells. See =E2=80=98Bash Startup Files[2]=E2=80=99, for deta= ils on Bash > start-up files. Thanks! I am reading that part now, specially [2]. I have deleted the env variables from .bashrc and have just set them in .profile, since my distro is Ubuntu, and I am reading that Ubuntu does not use .bash_profile. Everything seems to be working fine. Thank you again :) > Cheers, > Cl=C3=A9ment > > [1]: https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-= environment.html#FOOT15 > [2]: https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-File= s.html#Bash-Startup-Files