Bug 272165

Summary: math/R: using mgcv: Too many args to microtask: 16!
Product: Ports & Packages Reporter: François Laissus <fr.laissus>
Component: Individual Port(s)Assignee: Joseph Mingrone <jrm>
Status: Open ---    
Severity: Affects Some People CC: freebsd
Priority: --- Flags: bugzilla: maintainer-feedback? (jrm)
Version: Latest   
Hardware: arm64   
OS: Any   

Description François Laissus 2023-06-23 17:59:21 UTC
FreeBSD 13.2 is running in virtual machine on arm64 (M1).

I've compiled /usr/ports/math/R after a fresh install with portsnap.

# This code is from 
# https://m-clark.github.io/generalized-additive-models/application.html

library('readr')
library('mgcv')

pisa = read.csv("https://raw.githubusercontent.com/m-clark/generalized-additive-models/master/data/pisasci2006.csv")

mod_gam1 = gam(Overall ~ s(Income, bs = "cr"), data = pisa)
Too many args to microtask: 16!

==> R program crashes

Same program is running fine on R-Studio on host (MacOS)
Comment 1 Mina Galić freebsd_triage 2023-06-23 18:10:30 UTC
*** Bug 272166 has been marked as a duplicate of this bug. ***
Comment 2 Joseph Mingrone freebsd_committer freebsd_triage 2023-06-23 18:25:22 UTC
I can only add a data point for now.  I tested the code on my FreeBSD CURRENT system (14.0-CURRENT ee67461e5682) running R-4.3.1 and it was fine.  Did you build R with default options?
Comment 3 François Laissus 2023-06-23 18:34:41 UTC
(In reply to Joseph Mingrone from comment #2)
answer is yes
cd /usr/ports/math/R; make ; make install 

Running R-4.3.1 too