grusonh

@grusonh@mastodon.social

Evolutionary biologist (#colsci) turned Research Software Engineer (#rstats, #epidemiology) 🏳️‍🌈 he/him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

grusonh, to random

I love the renv package for .
But I often receive feedback from frustrated colleagues who get package installation errors.

I have written a blog post to dive more into the issues that can arise when using renv, where they come from (spoiler: it's not renv's fault), and possible solutions.

"Things that can go wrong when using renv"

https://epiverse-trace.github.io/posts/renv-complications/

grusonh, to random

New blog post!

"Lesser-known reasons to prefer apply() over for loops"

https://epiverse-trace.github.io/posts/for-vs-apply/
The debase on for loops vs apply() often crystallizes around (misconceptions on) performance.
But there are good reasons to prefer apply() to for loops. They revolve around readability and robustness:

  1. Clarity of intent
  2. Code conciseness
  3. No variable leak
  4. Pipeability.
grusonh, to random

How come you generally don't have to think about installing system dependencies when testing packages in the cloud (e.g., on GitHub Actions)? 🤔

Short answer: it's because the pak package 📦 is doing some amazing magic behind the scenes.

Long answer: jump down the rabbit hole with this new blog post where we explore the various layers of complexity pak deals with to achieve this result:

https://blog.r-hub.io/2023/09/26/system-dependency/

(cross-posted on blog: https://epiverse-trace.github.io/posts/system-dependencies/)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • JUstTest
  • All magazines