[R] Cryptic error from stargazer
Enrico Schumann
e@ @end|ng |rom enr|co@chum@nn@net
Thu Jun 8 09:43:52 CEST 2023
On Thu, 08 Jun 2023, Ashim Kapoor writes:
> Dear All,
>
> I had done an automatic upgrade of my Debian 10 system which had also
> upgraded R.
>
> I reinstalled the stargazer package and the error went away.
>
> Query : Do I need to reinstall all packages with each upgrade of R ?
>
> Best,
> Ashim
Your session info says "stargazer 5.2.2". What version do
you have now? CRAN has 5.2.3. It seems likely to me that
i) with R 4.3-0, certain warnings in the package have
become errors (the NEWS file for R 4.3-0,
https://cloud.r-project.org/doc/manuals/r-release/NEWS.html ,
has a prominent first item about using && and errors.)
and
ii) the package maintainer fixed those warnings/errors in 5.2.3.
kind regards
Enrico
> On Thu, Jun 8, 2023 at 11:11 AM Ashim Kapoor <ashimkapoor using gmail.com> wrote:
>>
>> Dear All,
>>
>> Here is my reproducible example:
>>
>> > library(stargazer)
>>
>> Please cite as:
>>
>> Hlavac, Marek (2018). stargazer: Well-Formatted Regression and
>> Summary Statistics Tables.
>> R package version 5.2.2. https://CRAN.R-project.org/package=stargazer
>>
>> > x1=1:1000 ; y = 2 * x1+ rnorm(1000)
>> > stargazer(lm(y~x1))
>> Error in (.format.s.statistics.list != "p25") &&
>> (.format.s.statistics.list != :
>> 'length = 7' in coercion to 'logical(1)'
>>
>> The error returned is cryptic and I am not able to google and find the solution.
>>
>> Here is my sessionInfo:
>>
>> > sessionInfo()
>> R version 4.3.0 (2023-04-21)
>> Platform: x86_64-pc-linux-gnu (64-bit)
>> Running under: Debian GNU/Linux 10 (buster)
>>
>> Matrix products: default
>> BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
>> LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.5.so; LAPACK version 3.8.0
>>
>> locale:
>> [1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN
>> [4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN
>> [7] LC_PAPER=en_IN LC_NAME=C LC_ADDRESS=C
>> [10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C
>>
>> time zone: Asia/Kolkata
>> tzcode source: system (glibc)
>>
>> attached base packages:
>> [1] stats graphics grDevices utils datasets methods base
>>
>> other attached packages:
>> [1] stargazer_5.2.2
>>
>> loaded via a namespace (and not attached):
>> [1] compiler_4.3.0
>>
>> Any help will be appreciated.
>>
>> Thank you,
>> Ashim
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net
More information about the R-help
mailing list