Code organization and deployment strategy for multiple Shiny apps sharing common logic within a single R package. Structuring your project in a monorepo format. [Read more...]
Four years ago, I described a simple framework for organizing simulations to conduct power analyses or explore the operating characteristics of modeling approaches. In that framework, I introduced a small function scenario_list that generated a list...
Resource for using Large Language Model tools in R
If you’re interested in using Large Language Models (LLMs) with R, you should check out Luis D. Verde Arregoitia’s new online resource: Large Language Model tools for R. Its available in English and S... [Read more...]
New online book AI Assistants for Scientific Coding
I’ve released a new online book, AI Assistants for Scientific Coding. It’s a practical guide to using language models to support scientific computing and analysis.
The book focuses on helping people... [Read more...]
The 1937 disappearance of Amelia Earhart and Fred Noonan was briefly in the news in the last week or so. A campaign, apparently based in the Northern Marianas, to release any papers held by the US government found a willing ear in the current US admini...
Automating the Github Copilot Agent from the command line with Copilot CLI
Github Copilot CLI (Command Line Interface) recently became available. It is an AI agent, meaning it can use tools autonomously in a loop. It has two modes:
An interac... [Read more...]
I’m teaching my Modern Plain Text Computing course this semester and so I’m on the lookout for small examples that I can use to show some of the small techniques we regularly use when working with tables of data. One of those is just coming up with some ... [Read more...]
If this post is useful to you I kindly ask a minimal donation on Buy Me a Coffee. It shall be used to continue my Open Source efforts. The full explanation is here: A Personal Message from an Open Source Contributor.
You can send me questions for...
Reposted from the original at https://blog.stephenturner.us/p/construct-objects-with-idiomatic-r-code---Today I discovered the constructive package and the construct()
function for creating R objects with idiomatic R code to make
human-readable repro... [Read more...]
It’s been a while because, reasons. I’m still alive, still enjoying recreational R programming and still writing the occasional post that almost no one reads these days. Like this one. Sam Lord writes on the site formerly known as Twitter: I bet that we can answer that using ...
This post is about economic growth in a region in which labour is free to move around.
A colleague recently showed me a paper by Capasso, Engbers and La Torre which describes an extension of the Solow growth model in which a spatial element is added. It seemed to me ...
I find that when teaching statistics (and probability) it is often helpful to simulate data first in order to get an understanding of the problem. The Monty Hall problem recently came up in a class so I implemented a function to play the game.
Th... [Read more...]
I recently released on github a R package Rfuzzycoco that provides the Fuzzy Coco algorithm by wrapping my fuzzycoco C++ implementation and extending it. It provides easy installation and access to this software.
The Comprehensive R Archive Netw...
If this post is useful to you I kindly ask a minimal donation on Buy Me a Coffee. It shall be used to continue my Open Source efforts. The full explanation is here: A Personal Message from an Open Source Contributor.
You can send me questions for... [Read more...]
When working with distributions in R, each distribution has four functions, namely:
dXXX - density function.
rXXX - generate random number from this distribution.
pXXX - returns the area to the left of the given value.
qXXX - returns the quantil...
At rOpenSci, our Code of Conduct (CoC) committee works to support a healthy, welcoming, and inclusive community. A big part of this work is making sure that the processes we follow are transparent, consistent, and fair. Over the years, we’ve developed... [Read more...]
Learn how to effectively implement Behavior-Driven Development (BDD) practices in your projects. Focus on delivering the most valuable scenarios first and avoid the pitfalls of over-specification. [Read more...]