detecting operating system in R (e.g. for adaptive .Rprofile files)

前端 未结 4 1490
野趣味
野趣味 2020-11-27 04:44

I was wondering how to automatically detect operating system in R, for example to place things in the .Rprofile.

4条回答
  •  离开以前
    2020-11-27 05:27

    > Sys.info()
                                          sysname 
                                          "Linux" 
                                          release 
                              "2.6.32-26-generic" 
                                          version 
    "#48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010" 
    

提交回复
热议问题