From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iIDLK0lu6GZjLQEAqHPOHw:P1 (envelope-from ) for ; Mon, 16 Sep 2024 17:43:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iIDLK0lu6GZjLQEAqHPOHw (envelope-from ) for ; Mon, 16 Sep 2024 19:43:37 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Kqnefbfx; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726508617; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IIqlY8AiPW9u/6Q5JQYn1bE79QWCi2OS4BFdxB6Scwo=; b=T584QJsqV1BXVw8kUAz+p6D29WnSrmLXwZEBLzZeEDu2KQP7ikvllIhxUDx0B29TDz0ax2 LXuQo091UJFn38F0zNo5BZLFYO0jfG9rSbdRnmm5ovVSOvlxRjN6P1hwbyB46qGL/gGUhT 155EEfhxkO49/ABT35BOjaiFYgKonkL5MWPeRqPxL9VDSsWSEiAGLdpBiQx7t/6uTKrw1F ArdZQABA+ukJNsWRZsMSAR4fpyeZkcCasZmdDX9gxVC10DqFiYVAaI78vB+XCoBNjzJldc /0gYVun/m12XRq4nCvwPj8m21M+ieULaJEXZlM/g95IV8Od/I2aUQg5pb3DNBg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1726508617; a=rsa-sha256; cv=pass; b=qrtm2tbrUdu/YgOHHQL/Uyxw/35PcKTP367+Kl955yxI415Zj8385G2l9q7v1a8k3QGlsH Dkjhy1X6izrcZ1oOPgHH/Y4e8qZw9rTlnlxZfR82Nj0GS7Aen0mZ7ynveTkqJSl42KVkAB G5MP6ZAS/6xnDCrrsljSHLeCuEkyri/HA4MKTf8JiGM9C/iaX5fJLx7Es1wmGHY7j0v9/k Sg+L5OQlZk7wEJ8tFWFK1YgJNBW7CG6eIfT6cXX++WpTnXY9kbIdlgEmVPYVyP4GymMEO8 UsDdWNLw5DqNMq7vZH+1f/wx6jMP7GVW4oNxTR/lG3hktUDEyYbqyFzhFUArJg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Kqnefbfx; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9404C655A4 for ; Mon, 16 Sep 2024 19:43:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqFkp-0005On-S5; Mon, 16 Sep 2024 13:43:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqFko-0005IY-1V for guix-devel@gnu.org; Mon, 16 Sep 2024 13:43:14 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqFkl-00044m-DD for guix-devel@gnu.org; Mon, 16 Sep 2024 13:43:13 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1726508577; cv=none; d=zohomail.com; s=zohoarc; b=k6UjkN6SYXBs7It6dVc6Lz/C3FUaNdWF6fup098CQbTeN24IouFwZiyfRGf4LU8RggVrK5d1piNzwYpejiExHV8vhJW+cbdhJdp2rXSY0X6hCy+Uyu5s2Nlt1jWMlN0gwTorvM2rd2KeRpvDi7ekw6vZ7RhvY7ImZKOm93Ug3Vc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726508577; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=IIqlY8AiPW9u/6Q5JQYn1bE79QWCi2OS4BFdxB6Scwo=; b=XAmh0Yz0kuutCnJXnfQSwjNxwouE7Wp9+t1+Oj+gyUGSAjcSbnqxd/0KjRqP36C5QOz+Cb/tFpOXYNtIVJitIHTuE8wZGJ1bFJtHnunuhyH2Nh2w5hNNZNjHNxCFwqxeLAPnrP7pNBdIjUQMeP5BzfKUBWhH048K18TIzh0kT3A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1726508577; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=IIqlY8AiPW9u/6Q5JQYn1bE79QWCi2OS4BFdxB6Scwo=; b=KqnefbfxjoZtStxRB0uXvb0P8Sg+WmziSO0M2XIbWWC4Wq6jHBlQIum8VG4AU8PJ OlwwF+k36Oih1kyGeC7TT5a+rHm38fpzRs+UWEcTmTzPWhr9YnJ/mske8BbdSC3YWXN d8jR/SrxlAc+S1bbV7I0L7ijxqMUX+0eFKBlnzaI= Received: by mx.zohomail.com with SMTPS id 1726508575875425.56997792939205; Mon, 16 Sep 2024 10:42:55 -0700 (PDT) From: Ricardo Wurmus To: Divya Cc: guix-devel@gnu.org Subject: Re: R packages are not recognized. In-Reply-To: <44F4ED2C-FC87-475A-BD27-10EA665D9CBF@subvertising.org> (divya@subvertising.org's message of "Mon, 16 Sep 2024 14:02:30 +0000") References: <44F4ED2C-FC87-475A-BD27-10EA665D9CBF@subvertising.org> Date: Mon, 16 Sep 2024 19:42:51 +0200 Message-ID: <87y13r336s.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.55 X-Migadu-Queue-Id: 9404C655A4 X-Spam-Score: -10.55 X-TUID: HU4gpcCfyreJ Divya writes: > I installed R packages using `guix install`, `guix shell` or by adding them to my home configuration, but in none of those ways can I get > my R system (which is also installed through guix using system configuration) can recognize those packages. > > What is going wrong? R consults the value of the environment variable R_LIBS_SITE to determine the list of directories to search for packages. When R is installed with Guix into a profile, Guix generates an entry in $GUIX_PROFILE/etc/profile that points R to the sub-directory of this profile containing R packages. When you install R packages into a separate profile (and without "r-minimal" or "r") then the generated etc/profile file will not have an entry for R_LIBS_SITE. You can either set this value manually before launching R, use `.libPath` inside an R session to augment the search path, or install R (i.e. "r-minimal" or "r") alongside the packages you intend to use. You can also use "guix shell" with a manifest containing both R and the packages you need; Guix will set R_LIBS_SITE automatically in this case, so that R inside of the Guix environment has access to all requested R packages. -- Ricardo