Jason Mercer
wetlandscapes.bsky.social
Jason Mercer
@wetlandscapes.bsky.social

Wetlands and waters from the montane to marine, data science, reproducibility, isotopes, and climate change. Personal account; opinions my own.

Environmental science 58%
Agriculture 17%

This has me cackling. Thank you @hadley.nz
Do you teach #rstats? Do your students complain about how lame and old-fashioned dplyr is? Don't worry: I have the solution for you: github.com/hadley/genzp....

genzplyr is dplyr, but bussin fr fr no cap.
GitHub - hadley/genzplyr: dplyr but make it bussin fr fr no cap
dplyr but make it bussin fr fr no cap. Contribute to hadley/genzplyr development by creating an account on GitHub.
github.com
We are looking for #rstats community feedback on 3 new dplyr functions!

We're aiming to expand the `filter()` family:

- `filter()` to keep rows
- `filter_out()` to drop rows
- `when_any()` and `when_all()` as modifiers

Read more and leave feedback here:
github.com/tidyverse/ti...
Do you teach #rstats? Do your students complain about how lame and old-fashioned dplyr is? Don't worry: I have the solution for you: github.com/hadley/genzp....

genzplyr is dplyr, but bussin fr fr no cap.
GitHub - hadley/genzplyr: dplyr but make it bussin fr fr no cap
dplyr but make it bussin fr fr no cap. Contribute to hadley/genzplyr development by creating an account on GitHub.
github.com

What about great_tables, which is the python version of gt: posit-dev.github.io/great-tables.... Full disclosure, never used tinytables, so I may be off base
intro – great_tables
posit-dev.github.io

Since you mentioned conda, curious about your opinions on pixi

I think that's all three in a single axiom

Reposted by Jason J. Mercer

Posit @posit.co · Oct 1
Looking to use Quarto inside Positron, our new IDE for data science? We’ve released a video and guide for getting started.

Positron makes Quarto easy: Quarto is pre-installed, you get dedicated buttons for tasks like "Preview," and full coding support.

Learn more: posit.co/blog/create-...

Are you?

Cline+OpenRouter in Positron is amazing

Reposted by Jason J. Mercer

📢 PSA: The R-Forge server is under attack from hackers and hence web access (e.g., for package installation) is currently down. #rstats

The team at WU Wien is working on it. I'll report here when it is back up again.

Git pull/merge requests intimidate me. What really helped you understand them? And how do you usually do them in a way that helps the person making the request get good feedback while also ensuring the code is in good shape (outside of tests -- code isn't at that stage, yet)? Web? Local?
New #QuartoPub extension! Quarto output styling adds CSS rules for computational output, warnings, and messages for #rstats, #python, #julialang, and #observablejs - use the default styles, minimal styles, or add your own custom CSS andrewheiss.github.io/quarto-outpu...

Where are the communities focused on data science, engineering, analytics, etc in the public utilities sector? Especially water. Trying to find my nerds

You should. You should make a package for that

Say you have some observations and a black box model (e.g., compiled and you can't change anything about it). You can programmatically manipulate the model parameters and compare results to observations. That's it. What tool do you use to tune the parameters? Bonus for any #bayesian tools

Given a focus on scientific computing I prefer #julialang for speed and readability, but I'm Rust curious. Is there a rust equivalent to rcpp for #rstats?

I'm learning all kinds of new tricks. Thanks for the recs!

Cool package! It's a little awkward with the roxygen stuff inside the function, but I def get why they did that. Just means a lot of copy paste if/when converting to a package

Well that's a neat trick. Pretty heavy dependency, but for a dev environment wouldn't really matter

One thing I really #rstats had was a way to view a help file for a local function just using roxygen2 decorators. I'm lazy, I don't want to build a package

This is huge. Not entirely sure of the security implications, but would be cool if there was an environment variable, flag, or bash script the rocker project could use to automate a bit of this setup on the image side of things

Have you set your .vscode/settings.json to format qmd files? posit-dev.github.io/air/editor-v...
VS Code and Positron – Air
posit-dev.github.io

Reposted by Jason J. Mercer

Thanks for trying it out!

Check out this button in the plot pane for opening in editor or new window and the "colorize" extension for coloring hex codes and other colors:

Reposted by Jason J. Mercer

*Another* blog post about @posit.co's Positron! Its Remote Explorer feature lets you connect to other computers via SSH, including locally-running Docker containers, which means you can write and run code in version-locked #rstats environments! www.andrewheiss.com/blog/2025/07...
Posit @posit.co · Jul 1
Ever wonder how the #tidyverse came to be? 🤔

#TheTestSet's first episode features @hadley.nz on his accidental empire of #RStats packages, bear encounters, and more!

Stream it at thetestset.co, Spotify, or Apple Podcasts.

#DataAnalytics #PodcastLaunch
Bleeding edge update for the #tidyverse purrr package with even more seamless #rstats parallel maps.

Introducing our shiniest new adverb: `in_parallel()`. Just wrap your function to take advantage of blazing fast parallel processing via mirai.

pak::pak("tidyverse/purrr")

purrr.tidyverse.org/dev/
Functional Programming Tools
A complete and consistent functional programming toolkit for R.
purrr.tidyverse.org

Anyone have an example of setting up and using @duckdb.org's ducklake in #rstats, yet? Preferably with dbplyr or duckplyr

What are your favorite ways to model time series? Bonus for models that can accomodate [0, Inf) bounded data and sharp spikes in seasonality, where the onset of the spike varies over time

Reposted by Jason J. Mercer

Congress has just released a list of federal DOI offices to be closed under the ongoing massacre of our natural resource agencies -- it's extensive and includes many important NPS, BLM, USGS and USFWS facilities across the country. Truly horrific. democrats-naturalresources.house.gov/imo/media/do...
democrats-naturalresources.house.gov