lrberge / fixest

Fixed-effects estimations
https://lrberge.github.io/fixest/
361 stars 59 forks source link

🔥 Major bug introduced in fixest 0.12.0 for R versions 4.1.0 to 4.1.2 -- SOLVED #494

Closed lrberge closed 2 weeks ago

lrberge commented 2 months ago

fixest 0.12.0 introduced a major internal retooling whereby most print and string manipulation tools were offloaded to the package stringmagic.

after upgrading to fixest 0.12.0 several users reported the following bug:

Error: in string_magic_internal(..., .delim = .delim, .envi...:
string_magic requires at least one character scalar to work.
Named arguments are only used as variables on which to apply interpolation.
FIX: please provide at least one non-named argument.

The bug seems to happen in R 4.1.2 on Ubuntu only. Currently upgrading R works but I'm trying to find a better fix.

lrberge commented 2 months ago

stringmagic use(ed) the base-R function ...names().

The problem is that the definition of ...names() in R version <= 4.1.2 is different from the definition in versions >= 4.1.3. The development was made with R >= 4.1.3 and the changes in definitions went unnoticed. Now fixed in stringmagic v1.1.2 (just submitted 2024-04-29 23:59 CET).

To make fixest work: wait until stringmagic v1.1.2 is on CRAN, then install it. It should work.

lrberge commented 2 months ago

Update: stringmagic v1.1.2 is on CRAN. Please update it to make fixest v0.12.0 work.

lrberge commented 2 weeks ago

Closing as 0.12.1 is out.