[R-SIG-Mac] Error identifying system version in sessionInfo()
Prof Brian Ripley
r|p|ey @end|ng |rom @t@t@@ox@@c@uk
Sat Jan 15 08:51:44 CET 2022
On 13/01/2022 18:32, Rohde, Maximilian D wrote:
> Hello,
>
> I have encountered a bug that I have documented here: https://stackoverflow.com/questions/70690684/wrong-session-info-in-when-knitting-in-r-markdown?noredirect=1#comment124971021_70690684
>
> In brief, the issue is that running the `sessionInfo()` function in a terminal session of R gives the wrong operating system for my computer. I am running Monterey 12.1, but it returns Big Sur 10.16. However, running the same command in the RStudio console gives the correct operating system.
>
> I have narrowed down the problem to this command giving different output depending on if it is run in RStudio or in the terminal: `readLines("/System/Library/CoreServices/SystemVersion.plist”)`
>
> Any help is appreciated, thank you!
This is documented! ?sessionInfo says
Where R was compiled under macOS 10.x (as the CRAN Intel
distributions have been) but running under ‘Big Sur’ or later,
macOS reports itself as ‘10.16’ (which R recognizes as ‘Big
Sur/Monterey’) and not ‘11.x’ or ‘12.x’.
This is a bug in macOS, not in R.
>
> Best,
> Max
>
> [[alternative HTML version deleted]]
Please follow the posting guide, do your own homework and not send HTML.
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
--
Brian D. Ripley, ripley using stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
More information about the R-SIG-Mac
mailing list