R

R

945 bookmarks
Newest
Refactoring notes
Refactoring notes
I worked on a refactor of an R package at work the other day. Here’s some notes about that after doing the work. This IS NOT a best practices post - it’s just a collection of thoughts. For context, the package is an API client. It made sense to break the work for any given exported function into the following components, as applicable depending on the endpoint being handled (some endpoints needed just a few lines of code, so those funtions were left unchanged):
·recology.info·
Refactoring notes
Prompt and empower your LLM, the tidy way
Prompt and empower your LLM, the tidy way
The tidyprompt package allows users to prompt and empower their large language models (LLMs) in a tidy way. It provides a framework to construct LLM prompts using tidyverse-inspired piping syntax, with a library of pre-built prompt wrappers and the option to build custom ones. Additionally, it supports structured LLM output extraction and validation, with automatic feedback and retries if necessary. Moreover, it enables specific LLM reasoning modes, autonomous R function calling for LLMs, and compatibility with any LLM provider.
·tjarkvandemerwe.github.io·
Prompt and empower your LLM, the tidy way
Package-Wide Variables/Cache in R Packages | R-bloggers
Package-Wide Variables/Cache in R Packages | R-bloggers
It’s often beneficial to have a variable shared between all the functions in an R package. One obvious example would be the maintenance of a package-wide cache for all of your functions. I’ve encountered this situation multiple times and always forget at least one important step in the process, so I thought I’d document it [...]
·r-bloggers.com·
Package-Wide Variables/Cache in R Packages | R-bloggers
Simple Arrays
Simple Arrays
Provides a toolkit for manipulating arrays in a consistent, powerful, and intuitive manner through the use of broadcasting and a new array class, the rray.
·rray.r-lib.org·
Simple Arrays
R Coding Style Best Practices - Datanovia
R Coding Style Best Practices - Datanovia
1      1Share This article describes the essentials of R coding style best practices. It’s based on the tidyverse style guide. Google’s current guide is also derived from the tidyverse style guide. […]
·datanovia.com·
R Coding Style Best Practices - Datanovia
Chatgpt R-programming Prompts • PromptDen
Chatgpt R-programming Prompts • PromptDen
Explore a curated collection of thought-provoking chatbot prompts designed for R-programming enthusiasts. Ignite your coding creativity!
·promptden.com·
Chatgpt R-programming Prompts • PromptDen
Vapour | Vapour
Vapour | Vapour
Write more robust R code
·vapour.run·
Vapour | Vapour
Ambiorix
Ambiorix
Web framework for the R programming language, inspired by express.js, allows building applications as well as APIs.
·ambiorix.dev·
Ambiorix
Capturing Screenshots Programmatically With R
Capturing Screenshots Programmatically With R
As part of our work documenting R-Universe, we’re adding screenshots of the interface to the documentation website. Taking screenshots manually could quickly become very cumbersome, especially as we expect they’ll need updating in future: we might want to change the universes we feature, the interface might improve yet again and therefore look slightly different. Therefore, we decided to opt for a programmatic approach. In this post we shall present our learnings from using the R packages chromote and magick to produce screenshots.
·ropensci.org·
Capturing Screenshots Programmatically With R
How to webscrape in R?
How to webscrape in R?
Learn how to webscrape in R and use it to gather real data on the Internet.
·codingthepast.com·
How to webscrape in R?
R in the backend not Shiny
R in the backend not Shiny
1 Using R in the back-end .. but not with R-Shiny LIBData Portal
·docs.google.com·
R in the backend not Shiny