<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>community | B101nfo</title>
    <link>https://llrs.dev/tags/community/</link>
      <atom:link href="https://llrs.dev/tags/community/index.xml" rel="self" type="application/rss+xml" />
    <description>community</description>
    <generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>en-us</language><copyright>If it is code you can copy and reuse (MIT) if it is text, please cite and reuse CC-BY 2024.</copyright><lastBuildDate>Thu, 13 Feb 2020 00:00:00 +0000</lastBuildDate>
    <image>
      <url>img/map[gravatar:%!s(bool=false) shape:circle]</url>
      <title>community</title>
      <link>https://llrs.dev/tags/community/</link>
    </image>
    
    <item>
      <title>R weekly new editor</title>
      <link>https://llrs.dev/post/2020/02/13/r-weekly-new-editor/</link>
      <pubDate>Thu, 13 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://llrs.dev/post/2020/02/13/r-weekly-new-editor/</guid>
      <description>
&lt;script src=&#34;https://llrs.dev/post/2020/02/13/r-weekly-new-editor/index_files/header-attrs/header-attrs.js&#34;&gt;&lt;/script&gt;


&lt;p&gt;&lt;a href=&#34;https://rweekly.org&#34;&gt;Rweekly&lt;/a&gt; is looking for &lt;a href=&#34;https://docs.google.com/forms/d/e/1FAIpQLSet2Tq_mWWOVsKWxGOSoUg8DzCPlW2-nxIFOSkkRvlUFxQFLw/viewform&#34;&gt;new editors&lt;/a&gt;. But they need to have submitted “at least 6 PRs on R Weekly”. If you submitted something through &lt;a href=&#34;https://rweekly.org/submit&#34;&gt;the webpage&lt;/a&gt; you also can apply. But I’ll look at how many people has submitted pull requests (PR) through GitHub at the repo rweekly/rewekly.&lt;/p&gt;
&lt;div id=&#34;gh&#34; class=&#34;section level1&#34;&gt;
&lt;h1&gt;GH&lt;/h1&gt;
&lt;p&gt;So the GH package is good for this, but we need to know the API of Github. After a quick search I found the end point of the API:&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(&amp;quot;gh&amp;quot;)
PR &amp;lt;- gh(&amp;quot;GET /search/issues?q=repo:rweekly/rweekly.org+is:pr+is:merged&amp;amp;per_page=100&amp;quot;) # Copied from https://developer.github.com/v3/pulls/
PR$total_count
## [1] 706&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We know that there have been 552, we’ll need 8 calls to the appy, because it returns 100 values on each call.&lt;/p&gt;
&lt;p&gt;This time we’ll use copy and paste for a quick solution:&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;PR2 &amp;lt;- gh(&amp;quot;GET /search/issues?q=repo:rweekly/rweekly.org+is:pr+is:merged&amp;amp;per_page=100&amp;amp;page=2&amp;quot;)
PR3 &amp;lt;- gh(&amp;quot;GET /search/issues?q=repo:rweekly/rweekly.org+is:pr+is:merged&amp;amp;per_page=100&amp;amp;page=3&amp;quot;)
PR4 &amp;lt;- gh(&amp;quot;GET /search/issues?q=repo:rweekly/rweekly.org+is:pr+is:merged&amp;amp;per_page=100&amp;amp;page=4&amp;quot;)
PR5 &amp;lt;- gh(&amp;quot;GET /search/issues?q=repo:rweekly/rweekly.org+is:pr+is:merged&amp;amp;per_page=100&amp;amp;page=5&amp;quot;)
PR6 &amp;lt;- gh(&amp;quot;GET /search/issues?q=repo:rweekly/rweekly.org+is:pr+is:merged&amp;amp;per_page=100&amp;amp;page=6&amp;quot;)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now that we have the data we need to retrive the user names:&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;data &amp;lt;- list(PR, PR2, PR3, PR4, PR5, PR6)

users &amp;lt;- lapply(data, function(x) {
  vapply(x$items, function(y) {y$user$login}, character(1L))
})
users &amp;lt;- sort(unlist(users))&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We know now that 171 has contributed through PR.
Which of them are done by at the same people?&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;ts &amp;lt;- sort(table(users), decreasing = TRUE)
par(mar = c(8,3,3,0))
barplot(ts, las = 2, border = &amp;quot;gray&amp;quot;, main = &amp;quot;Contributors to Rweekly.org&amp;quot;)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src=&#34;https://llrs.dev/post/2020/02/13/r-weekly-new-editor/index_files/figure-html/barplot-1.png&#34; width=&#34;672&#34; /&gt;&lt;/p&gt;
&lt;p&gt;So we have 34 contributors which are ellegible, less if we remove the current editors:&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;names(ts)[ts &amp;gt;= 6]
##  [1] &amp;quot;Ryo-N7&amp;quot;          &amp;quot;HenrikBengtsson&amp;quot; &amp;quot;martinctc&amp;quot;       &amp;quot;maelle&amp;quot;         
##  [5] &amp;quot;amrrs&amp;quot;           &amp;quot;jwijffels&amp;quot;       &amp;quot;lgellis&amp;quot;         &amp;quot;mcdussault&amp;quot;     
##  [9] &amp;quot;malcolmbarrett&amp;quot;  &amp;quot;moldach&amp;quot;         &amp;quot;dA505819&amp;quot;        &amp;quot;echasnovski&amp;quot;    
## [13] &amp;quot;jonmcalder&amp;quot;      &amp;quot;jonocarroll&amp;quot;     &amp;quot;mailund&amp;quot;         &amp;quot;suzanbaert&amp;quot;     
## [17] &amp;quot;seabbs&amp;quot;          &amp;quot;feddelegrand7&amp;quot;   &amp;quot;hfshr&amp;quot;           &amp;quot;lorenzwalthert&amp;quot; 
## [21] &amp;quot;MilesMcBain&amp;quot;     &amp;quot;RaoOfPhysics&amp;quot;    &amp;quot;tomroh&amp;quot;          &amp;quot;EmilHvitfeldt&amp;quot;  
## [25] &amp;quot;katiejolly&amp;quot;      &amp;quot;privefl&amp;quot;         &amp;quot;rCarto&amp;quot;          &amp;quot;deanmarchiori&amp;quot;  
## [29] &amp;quot;DougVegas&amp;quot;       &amp;quot;eokodie&amp;quot;         &amp;quot;jdblischak&amp;quot;      &amp;quot;mkmiecik14&amp;quot;     
## [33] &amp;quot;noamross&amp;quot;        &amp;quot;rstub&amp;quot;&lt;/code&gt;&lt;/pre&gt;
&lt;div id=&#34;reproducibility&#34; class=&#34;section level3&#34;&gt;
&lt;h3&gt;Reproducibility&lt;/h3&gt;
&lt;details&gt;
&lt;pre&gt;&lt;code&gt;## ─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
##  setting  value                       
##  version  R version 4.0.1 (2020-06-06)
##  os       Ubuntu 20.04.1 LTS          
##  system   x86_64, linux-gnu           
##  ui       X11                         
##  language (EN)                        
##  collate  en_US.UTF-8                 
##  ctype    en_US.UTF-8                 
##  tz       Europe/Madrid               
##  date     2021-01-08                  
## 
## ─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────
##  package     * version date       lib source                           
##  assertthat    0.2.1   2019-03-21 [1] CRAN (R 4.0.1)                   
##  blogdown      0.21.84 2021-01-07 [1] Github (rstudio/blogdown@c4fbb58)
##  bookdown      0.21    2020-10-13 [1] CRAN (R 4.0.1)                   
##  cli           2.2.0   2020-11-20 [1] CRAN (R 4.0.1)                   
##  crayon        1.3.4   2017-09-16 [1] CRAN (R 4.0.1)                   
##  curl          4.3     2019-12-02 [1] CRAN (R 4.0.1)                   
##  digest        0.6.27  2020-10-24 [1] CRAN (R 4.0.1)                   
##  evaluate      0.14    2019-05-28 [1] CRAN (R 4.0.1)                   
##  fansi         0.4.1   2020-01-08 [1] CRAN (R 4.0.1)                   
##  gh          * 1.2.0   2020-11-27 [1] CRAN (R 4.0.1)                   
##  gitcreds      0.1.1   2020-12-04 [1] CRAN (R 4.0.1)                   
##  glue          1.4.2   2020-08-27 [1] CRAN (R 4.0.1)                   
##  htmltools     0.5.0   2020-06-16 [1] CRAN (R 4.0.1)                   
##  httr          1.4.2   2020-07-20 [1] CRAN (R 4.0.1)                   
##  jsonlite      1.7.2   2020-12-09 [1] CRAN (R 4.0.1)                   
##  knitr         1.30    2020-09-22 [1] CRAN (R 4.0.1)                   
##  magrittr      2.0.1   2020-11-17 [1] CRAN (R 4.0.1)                   
##  R6            2.5.0   2020-10-28 [1] CRAN (R 4.0.1)                   
##  rlang         0.4.10  2020-12-30 [1] CRAN (R 4.0.1)                   
##  rmarkdown     2.6     2020-12-14 [1] CRAN (R 4.0.1)                   
##  sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 4.0.1)                   
##  stringi       1.5.3   2020-09-09 [1] CRAN (R 4.0.1)                   
##  stringr       1.4.0   2019-02-10 [1] CRAN (R 4.0.1)                   
##  withr         2.3.0   2020-09-22 [1] CRAN (R 4.0.1)                   
##  xfun          0.20    2021-01-06 [1] CRAN (R 4.0.1)                   
##  yaml          2.2.1   2020-02-01 [1] CRAN (R 4.0.1)                   
## 
## [1] /home/lluis/bin/R/4.0.1/lib/R/library&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;/div&gt;
&lt;/div&gt;
</description>
    </item>
    
  </channel>
</rss>
