home.social

#codingclub — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #codingclub, aggregated by home.social.

fetched live
  1. Would anyone be interested if I re-ran the live weekly zooms for coding club on creating an R package for a research project? #rstats #CodingClub #PsyTeachR

    psyteachr.github.io/intro-r-pk

  2. Today is the last session of #CodingClub for 2022! We'll be learning how to share your #rstats package in a github repository and host your pkgdown website via github pages.

    Book Chapter: psyteachr.github.io/intro-r-pk
    Demopkg: github.com/psyteachr/demopkg
    When: 2022-12-07, 16:00 UTC
    Zoom: uofglasgow.zoom.us/j/850420427
    Password: codingclub

  3. Just under the wire! I had 3 more hours of meetings today than I expected, so have just posted the newest chapter of #CodingClub: Creating an R Package. We'll be covering package maintenance today, and I'll demonstrate how to produce, and more importantly, recover from, errors in CMD check.

    psyteachr.github.io/intro-r-pk

  4. I just finished updating the pkgdown chapter for today's #CodingClub. I added sections on how to add a custom logo and badges to the home page, which use two cool #rstats packages by Guangchuang Yu: {hexSticker} and {badger}.

    psyteachr.github.io/intro-r-pk

  5. In #CodingClub today we added a vignette to our package and tested how to access the vignettes list with vignette(package="demopkg"). This works fine for a package loaded with devtools::load_all("."), but if you install the package, the vignettes are missing.

    As I typed this request for help, I remembered how to fix it! (Why is there no rubberduck emoji?) Building the vignettes defaults to FALSE, so we need to run this instead to install:

    devtools::install(build_vignettes = TRUE)

  6. I've just speed-written the chapter on building package vignettes for tomorrow's #PsyTeachR #CodingClub. As always, all are welcome (sign up on the EventBrite on the overview page to get the Zoom link) and it starts at 16:05 GMT+0. There are recordings for the previous week at the top of each chapter. The overview also has a link to the demopkg so far, which you can download to quickly catch up.

    psyteachr.github.io/intro-r-pk

  7. #rstats dev mystery:

    On both my laptops, ifelse(NaN < 0, 0, 1) returns NA, and on my desktop it returns an error. I thought It was because I'd set strict checking in my .Renviron on the desktop (see below), but that doesn't seem to change things.

    _R_CHECK_LENGTH_1_LOGIC2_=true
    _R_CHECK_LENGTH_1_CONDITION_=true

    Any ideas? It derailed #CodingClub yesterday because I expected a custom function to return NA when a t.test can't run, but it instead errored.

  8. Today's #PsyTeachR #CodingClub will be covering unit tests! This is a systematic way to make sure your code is doing what you expect.

    While this is the 5th session in a series building an #rstats package, you don't have to have been to the previous sessions to participate. Just get the code from last week's session at github.com/psyteachr/demopkg (download, don't install) and you'll be all set.

    When: 16:05-17:00 UK time
    Where: Zoom ID: 85042042718 (pw: codingclub)
    Materials: psyteachr.github.io/intro-r-pk

  9. #introduction:

    I’m a #psych professor at the University of Glasgow and part of the #TwitterMigration. I mostly post about #rstats, #OpenResearch, #MetaScience, #BigTeamScience, #ManyFaces, and #unions academically, and #crafts 🧶, #weightlifting 🏋️, and #lgbtq 🏳️‍🌈personally.

    I run the #CodingClub (a joint venture of #PsyTeachR and #MethodsMetaSci), which is learning to make an R package: psyteachr.github.io/intro-r-pk

    I’m working on a beginners’ guide to #CodeReview with github.com/code-check-club