5 天 后

barnett874

设置了还是... @@“

x 3.3 GiB [master*]> devtools::session_info()$platform |> 
     unlist() |> 
     data.frame(Category = names(.), session_info = .)
Error in data.frame(unlist(devtools::session_info()$platform), Category = names(.),  : 
  arguments imply differing number of rows: 9, 0

x 3.3 GiB [master*]> devtools::session_info()$platform %>% 
     unlist() %>% 
     data.frame(Category = names(.), session_info = .)
         Category                 session_info
version   version R version 4.1.0 (2021-05-18)
os             os           Ubuntu 20.04.2 LTS
system     system            x86_64, linux-gnu
ui             ui                      RStudio
language language                           en
collate   collate                  en_US.UTF-8
ctype       ctype                  en_US.UTF-8
tz             tz                   Asia/Tokyo
date         date                   2021-05-30

好了~

3.3 GiB [master*]> devtools::session_info()$platform %>% 
     unlist() %>% 
     (function(df) data.frame(Category = names(df), session_info = df))()
         Category                 session_info
version   version R version 4.1.0 (2021-05-18)
os             os           Ubuntu 20.04.2 LTS
system     system            x86_64, linux-gnu
ui             ui                      RStudio
language language                           en
collate   collate                  en_US.UTF-8
ctype       ctype                  en_US.UTF-8
tz             tz                   Asia/Tokyo
date         date                   2021-05-30

    ryo 可以用 R-perl 这么写:

    devtools::session_info()$platform |> 
         unlist() |> 
         {\(.) data.frame(Category = names(.), session_info = .)}()

    😂

    11 天 后
    1 年 后