mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

15K
active users

#renv

0 posts0 participants0 posts today
Lukas<p>Anyway here's that blogpost about using small shell wrappers for <a href="https://norden.social/tags/pak" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pak</span></a> and <a href="https://norden.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> and also <a href="https://norden.social/tags/Positron" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Positron</span></a> and project management and whatnot for the <a href="https://norden.social/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> crowd: <a href="https://blog.jemu.name/2025/03/r-usability-gimmicks/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.jemu.name/2025/03/r-usabi</span><span class="invisible">lity-gimmicks/</span></a></p>
Data Science<p>Want to use {pak} as backend for {renv} actions? Set the variable RENV_CONFIG_PAK_ENABLED = TRUE <a href="https://github.com/rstudio/renv/issues/1210" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rstudio/renv/issues</span><span class="invisible">/1210</span></a> <a href="https://genomic.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> <a href="https://genomic.social/tags/pak" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pak</span></a> <a href="https://genomic.social/tags/reproducibility" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>reproducibility</span></a> <a href="https://genomic.social/tags/RLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RLang</span></a></p>
Lukas<p>That awkward moment when the reproducibility editor didn't find the renv.lock and the instructions to run renv::restore() in the README.md, but then points you to a reproducibility checklist which also happens to mention <a href="https://norden.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> as one option to ensure reproducibility in terms of R package versions 🥲</p><p>I know it's a thankless volunteer job that can take enormous amounts of time so I'm not mad, I just.. appreciate the irony?<br><a href="https://norden.social/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://norden.social/tags/phdchat" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phdchat</span></a></p>
Data Science<p>Want to use {pak} as backend for {renv} actions? Set the variable RENV_CONFIG_PAK_ENABLED = TRUE <a href="https://github.com/rstudio/renv/issues/1210" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rstudio/renv/issues</span><span class="invisible">/1210</span></a> <a href="https://genomic.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> <a href="https://genomic.social/tags/pak" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pak</span></a> <a href="https://genomic.social/tags/reproducibility" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>reproducibility</span></a> <a href="https://genomic.social/tags/RLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RLang</span></a></p>
Data Science<p>Want to use {pak} as backend for {renv} actions? Set the variable RENV_CONFIG_PAK_ENABLED = TRUE <a href="https://github.com/rstudio/renv/issues/1210" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rstudio/renv/issues</span><span class="invisible">/1210</span></a> <a href="https://genomic.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> <a href="https://genomic.social/tags/pak" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pak</span></a> <a href="https://genomic.social/tags/reproducibility" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>reproducibility</span></a> <a href="https://genomic.social/tags/RLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RLang</span></a></p>
multimeric<p>Unfortunately, re-installing a whole renv library is incredibly slow. However, the renv.config.pak.enabled option speeds it up by a ridiculous margin by installing packages in parallel: <a href="https://rstudio.github.io/renv/reference/config.html#renv-config-pak-enabled" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">rstudio.github.io/renv/referen</span><span class="invisible">ce/config.html#renv-config-pak-enabled</span></a></p><p><a href="https://genomic.social/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://genomic.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> <a href="https://genomic.social/tags/pak" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pak</span></a></p>
Lukas<p>And the thing is, it's not just this project.<br>It's basically every <a href="https://norden.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a>-backed project I've touched in the past few years breaking in some way or another, including but not limited to</p><p>- renv itself shits its pants (especially with renv version upgrades)<br>- restoring across different platforms fails in creative ways<br>- restoring of packages with C/C++ source fails after some time<br>- some interaction of the above, leading to very annoying days where nothing of value happens</p>
Lukas<p>Not sure what it says about the effective utility of <a href="https://norden.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> that every time I try to run a slightly older project (using the correct R version), either the existing package library is broken somehow (due to dynamic linking and upgraded system packages I think) or I run into compilation errors when restoring packages (recently {fs} and {jsonlite}).</p><p>It's not much of a reproducible environment if it effectively breaks after ~7 months now, is it? :/</p><p><a href="https://norden.social/tags/RStats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RStats</span></a></p>
Lulu Powerful<p>Another interesting phenomenon. </p><p>renv.lock lists the project dependencies. By default, these should match renv::dependencies(). </p><p>renv::dependencies() lists each depended-upon package, and which R file it was mentioned in. But when I call it, it includes renv, and cites renv.lock as the file it was mentioned in.</p><p>So we have a circular thing where the known dependencies are an input into renv.lock, and renv.lock is an input into the known dependencies.</p><p><a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a></p><p>2/2</p>
Lulu Powerful<p>I've been yammering a lot about renv today. Well, I'm not done. I wish I could get off this merry-go-round but I'm stuck on it lol.</p><p>The thing where it installs a copy of itself in the project dir, even if the same version exists in the user/site lib, is due to how renv bootstraps itself when initialised i.e. uses itself to set itself up (if that makes sense hehe).</p><p>It seems the developers want to change how this works: <a href="https://github.com/rstudio/renv/issues/1799" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rstudio/renv/issues</span><span class="invisible">/1799</span></a></p><p><a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a></p><p>1/2</p>
Lulu Powerful<p>My renv lockfile includes renv itself in the list of packages. Is this normal? This doesn't match any of the examples I've seen online.</p><p>Maybe it's because renv is installed into my user library (which I have at ~/R_user_libs/4.4.0) because the site library isn't writeable by users.</p><p>What do I do? Force renv into the site library?</p><p><a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a></p>
Olivier Simard-Casanova 🦋<p>As you can expect, it's a ✨ delight ✨ to restore with <a href="https://mastodon.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> (it's not).</p>
Michael<p><span class="h-card" translate="no"><a href="https://mastodon.social/@eliocamp" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>eliocamp</span></a></span> <span class="h-card" translate="no"><a href="https://fosstodon.org/@Klesel" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Klesel</span></a></span> I found a soution. After renv::restore() I added renv::isolate(). This seems to work perfectly. Thanks for your help! <a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a></p>
Michael<p><span class="h-card" translate="no"><a href="https://mastodon.social/@eliocamp" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>eliocamp</span></a></span> <br>The only difference I see is copying the .Rprofile and the activate.R file. Is this the requirement to forcing <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> to install packages locally?</p>
Michael<p>How can I force <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> to add all libraries locally? I use the following code in a dockerfile and still wonder why the packages need to be installed every time I start the container. What am I missing here? <a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> <a href="https://fosstodon.org/tags/docker" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>docker</span></a> <a href="https://fosstodon.org/tags/R" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>R</span></a></p>
Michael<p>How to use <a href="https://fosstodon.org/tags/vscode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vscode</span></a> with <a href="https://fosstodon.org/tags/vscDebugger" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vscDebugger</span></a> and <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> ? I struggle to set the r.path.XXX correctly. Have anyone tried to configure this? <a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://fosstodon.org/tags/R" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>R</span></a></p>
Dax Kellie<p>📦 I tried using the {renv} package to save my R environment, but no matter what I did, it wouldn't reinstall packages when running `install()` or `restore()`.</p><p>To help anyone else who might hit this issue, this fixed it:<br><a href="https://ecoevo.social/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> <a href="https://ecoevo.social/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> <a href="https://ecoevo.social/tags/tidyverse" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tidyverse</span></a></p>
Martin Burgess<p>Does anyone out there have a MVP using {renv} to manage packages inside a GitHub Codespace Docker set up? <span class="h-card"><a href="https://fosstodon.org/@milesmcbain" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>milesmcbain</span></a></span>? 🙏 <a href="https://fosstodon.org/tags/codespaces" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codespaces</span></a> <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> <a href="https://fosstodon.org/tags/docker" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>docker</span></a></p>
vitaly_druker<p>Has anyone using <a href="https://fosstodon.org/tags/rstats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rstats</span></a> with <a href="https://fosstodon.org/tags/vscode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vscode</span></a> had luck getting the r debugger extension to work while using <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> ?</p>
Jeremy Allen<p>new release of <a href="https://fosstodon.org/tags/renv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>renv</span></a> for <a href="https://fosstodon.org/tags/RStats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RStats</span></a> includes:</p><p>"The new renv::checkout() makes it easy to use packages as if they’d all been installed at a specified date. For example, renv::checkout(date = "2023-02-08") will re-install all packages as they were on 2023-02-08 (using Posit Package Manager)...New projects will now use Posit Public Package Manager by default so that you’re more likely to get binaries." <a href="https://posit.co/blog/renv-1-0-0/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">posit.co/blog/renv-1-0-0/</span><span class="invisible"></span></a></p>