I'm trying to install the JASP packages in R to run a Bayesian multinomial test directly in R. I've installed jaspBase and jaspFrequencies using devtools::install_github. However, when I try to use jaspFrequencies::MultinomialTestBayesian(), I receive the error Error in loadNamespace(x) : there is no package called ‘jaspSyntax’. When I try to install jaspSyntax with devtools::install_github, I get this error with the full output below:
g++: error: unrecognized command-line option ‘-arch’
g++: error: unrecognized command-line option ‘-mmacosx-version-min=12.5’
make: *** [/usr/lib/R/etc/Makeconf:211: RcppExports.o] Error 1
ERROR: compilation failed for package ‘jaspSyntax’
Is there any way to install and run this directly in R?
I'm using Ubuntu 24.04.02, R 4.5.0, and RStudio 2025.05.0 Build 496.
devtools::install_github("jasp-stats/jaspSyntax")
Using github PAT from envvar GITHUB_PAT. Use `gitcreds::gitcreds_set()` and unset GITHUB_PAT in .Renviron (or elsewhere) if you want to use the more secure git credential store instead.
Downloading GitHub repo jasp-stats/jaspSyntax@HEAD
── R CMD build ───────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/tmp/Rtmp3lJT3J/remotes441837059f75f/jasp-stats-jaspSyntax-e8555e2/DESCRIPTION’ ...
─ preparing ‘jaspSyntax’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘jaspSyntax_1.0.tar.gz’
Installing package into ‘/home/**********/R/library’
(as ‘lib’ is unspecified)
* installing *source* package ‘jaspSyntax’ ...
** this is package ‘jaspSyntax’ version ‘1.0’
** using staged installation
Found R_HOME: /usr/lib/R
Use default QT_DIR: /home/**********/Qt/6.8.2/macos
./configure: 19: [[: not found
./configure: 24: [[: not found
./configure: 29: [[: not found
JASP_BUILD_DIR:
JASP_SOURCE_DIR:
JASP_DEBUG:
./configure: 40: [[: not found
OS_ARCH:
** libs
using C++ compiler: ‘g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0’
using C++20
g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG -I'/usr/lib/R/site-library/Rcpp/include' -O2 -arch -mmacosx-version-min=12.5 -std=gnu++17 -MD -MT -DQT_DIR=/home/**********/Qt/6.8.2/macos -I/SyntaxInterface -fpic -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/build/r-base-wwoKA3/r-base-4.5.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/build/r-base-wwoKA3/r-base-4.5.1=/usr/src/r-base-4.5.1-1.2404.0 -Wdate-time -D_FORTIFY_SOURCE=3 -c RcppExports.cpp -o RcppExports.o
g++: error: unrecognized command-line option ‘-arch’
g++: error: unrecognized command-line option ‘-mmacosx-version-min=12.5’
make: *** [/usr/lib/R/etc/Makeconf:211: RcppExports.o] Error 1
ERROR: compilation failed for package ‘jaspSyntax’
* removing ‘/home/**********/R/library/jaspSyntax’
Warning message:
In i.p(...) :
installation of package ‘/tmp/Rtmp3lJT3J/file4418379ebe2dc/jaspSyntax_1.0.tar.gz’ had non-zero exit status
I'm trying to install the JASP packages in R to run a Bayesian multinomial test directly in R. I've installed jaspBase and jaspFrequencies using devtools::install_github. However, when I try to use
jaspFrequencies::MultinomialTestBayesian(), I receive the errorError in loadNamespace(x) : there is no package called ‘jaspSyntax’. When I try to install jaspSyntax with devtools::install_github, I get this error with the full output below:Is there any way to install and run this directly in R?
I'm using Ubuntu 24.04.02, R 4.5.0, and RStudio 2025.05.0 Build 496.