Unable to install R package due to system2 error

Hello,

I tried to install the MetFragR package using the devtool package like this:

install_github("c-ruttkies/MetFragR/metfRag")

and I got the following error message:
Installing package into ‘C:/Users/Administratora/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

  • installing source package 'metfRag' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'metfRag'
    finding HTML links ... done
    alpha2image html
    create.settings.sample html
    frag.generateFragments html
    frag.generateMatchingFragments html
    getClusterMCSS html
    getDatabaseIDs html
    getMCSS html
    getPeaksExplained html
    getScores html
    hclust.mols html
    myimages.clustNumbers html
    myimages.hclust html
    plotCluster html
    plotMetClust html
    plotMol html
    run.metfrag html
    score.molecules.from.container html
    score.molecules.from.sdf html
    scoring.getRanks html
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded from temporary location
    *** arch - i386
    Error in system2(if (nzchar(arch)) file.path(R.home(), "bin", arch, "Rterm.exe") else file.path(R.home("bin"), :
    '"C:/PROGRA~1/R/R-40~1.2/bin/i386/Rterm.exe"' not found
  • removing 'C:/Users/Administratora/Documents/R/win-library/4.0/metfRag'
    Error: Failed to install 'metfRag' from GitHub:
    (converted from warning) installation of package ‘C:/Users/ADMINI~1/AppData/Local/Temp/RtmpApePc1/file2e04567d77d9/metfRag_2.4.2.tar.gz’ had non-zero exit status

Here is some info on my system:
ADSK_CLM_WPAD_PROXY_CHECK FALSE
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\Administratora\AppData\Roaming
CLICOLOR_FORCE 1
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME LAPTOP-CBV2U26Q
ComSpec C:\WINDOWS\system32\cmd.exe
CUSTOMER D:\MassHunter
DISPLAY :0
DriverData C:\Windows\System32\Drivers\DriverData
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_STRING Default
GFORTRAN_STDERR_UNIT -1
GFORTRAN_STDOUT_UNIT -1
HOME C:\Users\Administratora\Documents
HOMEDRIVE C:
HOMEPATH \Users\Administratora
INSTALL C:\Program Files\Agilent\MassHunter\Workstation\PCDL\B.07.00
LOCALAPPDATA C:\Users\Administratora\AppData\Local
LOGONSERVER \LAPTOP-CBV2U26Q
MPLENGINE tkAgg
MSYS2_ENV_CONV_EXCL R_ARCH
NUMBER_OF_PROCESSORS 8
OMP_NUM_THREADS 8
OneDrive C:\Users\Administratora\OneDrive
OneDriveConsumer C:\Users\Administratora\OneDrive
OnlineServices Online Services
OS Windows_NT
PATH C:\rtools40\usr\bin;C:\Program Files\R\R-4.0.2\bin\x64;C:\Program
Files\R\R-4.0.2\bin\i386;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath_target_213895234;C:\Program Files
(x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS
Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program
Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\NVIDIA
Corporation\PhysX\Common;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program
Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program
Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft
SQL Server\100\DTS\Binn;C:\Program Files\SCIEX\SCIEX OS;C:\Program
Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon;C:\Users\Administratora\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
platformcode KV
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 8e0a
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program
Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
QT_D3DCREATE_MULTITHREADED 1
R_ARCH /x64
R_COMPILED_BY gcc 8.3.0
R_DOC_DIR C:/PROGRA~1/R/R-40~1.2/doc
R_HOME C:/PROGRA~1/R/R-40~1.2
R_LIBS_USER C:/Users/Administratora/Documents/R/win-library/4.0
R_USER C:/Users/Administratora/Documents
RegionCode EMEA
RMARKDOWN_MATHJAX_PATH C:/Program Files/RStudio/resources/mathjax-27
RS_LOCAL_PEER \.\pipe\34524-rsession
RS_RPOSTBACK_PATH C:/Program Files/RStudio/bin/rpostback
RS_SHARED_SECRET 63341846741
RSTUDIO 1
RSTUDIO_CONSOLE_COLOR 256
RSTUDIO_CONSOLE_WIDTH 80
RSTUDIO_MSYS_SSH C:/Program Files/RStudio/bin/msys-ssh-1000-18
RSTUDIO_PANDOC C:/Program Files/RStudio/bin/pandoc
RSTUDIO_PROGRAM_MODE desktop
RSTUDIO_SESSION_PORT 34524
RSTUDIO_USER_IDENTITY Administratora
RSTUDIO_WINUTILS C:/Program Files/RStudio/bin/winutils
RTOOLS40_HOME C:\rtools40
SESSIONNAME Console
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\Users\ADMINI~1\AppData\Local\Temp
TERM xterm-256color
TMP C:\Users\ADMINI~1\AppData\Local\Temp
USERDOMAIN LAPTOP-CBV2U26Q
USERDOMAIN_ROAMINGPROFILE LAPTOP-CBV2U26Q
USERNAME Administratora
USERPROFILE C:\Users\Administratora
windir C:\WINDOWS

Could someone tell me what the matter is and how I can fix it? I would vermy much appreciate it!

Cheers
S

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.