You are not logged in.

#1 2021-07-27 16:10:08

Lv7s
Member
Registered: 2021-07-02
Posts: 1

Rstudio

Hi guys, I'm having a problem with Rstudio
I have installed rstudio with pamac and when entering I try to install devtools but I get this error:
> install.packages("devtools", repo = 'https://mac.R-project.org')Installing package into ‘/home/luis/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘gert’, ‘usethis’

probando la URL 'https://mac.R-project.org/src/contrib/gert_1.3.1.tar.gz'
Content type 'application/octet-stream' length 66767 bytes (65 KB)
==================================================
downloaded 65 KB

probando la URL 'https://mac.R-project.org/src/contrib/u … 0.1.tar.gz'
Content type 'application/octet-stream' length 306090 bytes (298 KB)
==================================================
downloaded 298 KB

probando la URL 'https://mac.R-project.org/src/contrib/d … 4.2.tar.gz'
Content type 'application/octet-stream' length 371298 bytes (362 KB)
==================================================
downloaded 362 KB

* installing *source* package ‘gert’ ...
** package ‘gert’ successfully unpacked and MD5 sums checked
** using staged installation
./configure: línea 26: arch: orden no encontrada
./configure: línea 26: [: =: se esperaba un operador unario
Using PKG_CFLAGS=
Using PKG_LIBS=-lgit2
----------------------------- ANTICONF -------------------------------
Configuration failed to find libgit2 library. Try installing:
* brew: libgit2 (MacOS)
* deb: libgit2-dev (Debian, Ubuntu, etc)
* rpm: libgit2-devel (Fedora, CentOS, RHEL)
If libgit2 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libgit2.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: error fatal: git2.h: No existe el fichero o el directorio
compilación terminada.
----------------------------------------------------------------------
ERROR: configuration failed for package ‘gert’
* removing ‘/home/luis/R/x86_64-pc-linux-gnu-library/4.1/gert’
ERROR: dependency ‘gert’ is not available for package ‘usethis’
* removing ‘/home/luis/R/x86_64-pc-linux-gnu-library/4.1/usethis’
ERROR: dependency ‘usethis’ is not available for package ‘devtools’
* removing ‘/home/luis/R/x86_64-pc-linux-gnu-library/4.1/devtools’

The downloaded source packages are in
    ‘/tmp/Rtmp5aH17m/downloaded_packages’
Warning messages:
1: In install.packages("devtools", repo = "https://mac.R-project.org") :
  installation of package ‘gert’ had non-zero exit status
2: In install.packages("devtools", repo = "https://mac.R-project.org") :
  installation of package ‘usethis’ had non-zero exit status
3: In install.packages("devtools", repo = "https://mac.R-project.org") :
  installation of package ‘devtools’ had non-zero exit status

Offline

#2 2021-07-28 09:56:51

pylong
Member
Registered: 2021-07-28
Posts: 5

Re: Rstudio

You'll want to ask on the Manjaro forum.

Offline

#3 2021-07-28 12:17:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,916

Re: Rstudio

There are archlinux users that use pamac .

Lv7s, some configuration is needed to have R packages managed by R .
check https://wiki.archlinux.org/title/R#Managing_R_packages .

You could also install r-devtools .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB