From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Subject: Re: [outreach] Help trying to create R package Date: Wed, 17 Oct 2018 19:13:28 +0200 Message-ID: <87y3aw339j.fsf@lassieur.org> References: <20181016074412.54757b18@alma-ubu> <20181016082350.75757e6b@alma-ubu> <20181017001851.71543cc9@alma-ubu> <20181017091750.1c408b8d@alma-ubu> 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]:53523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCpO7-000669-UP for guix-devel@gnu.org; Wed, 17 Oct 2018 13:13:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCpO4-0000ON-NA for guix-devel@gnu.org; Wed, 17 Oct 2018 13:13:39 -0400 Received: from mail.lassieur.org ([83.152.10.219]:59654) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCpO4-0000HE-F2 for guix-devel@gnu.org; Wed, 17 Oct 2018 13:13:36 -0400 In-reply-to: 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: Laura Lazzati Cc: Guix-devel , Ricardo Wurmus 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 output = 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:+:}$PATH" > 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 variables= . 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 sou= rced only by log-in shells. See =E2=80=98Bash Startup Files[2]=E2=80=99, for detail= s on Bash start-up files. Cheers, Cl=C3=A9ment [1]: https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-en= vironment.html#FOOT15 [2]: https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.= html#Bash-Startup-Files