Skip to content

Instantly share code, notes, and snippets.

View SimonCoulombe's full-sized avatar

Simon Coulombe SimonCoulombe

View GitHub Profile
@sj-io
sj-io / CLAUDE.md
Created August 21, 2025 09:25
Claude R Tidyverse Expert

Modern R Development Guide

This document captures current best practices for R development, emphasizing modern tidyverse patterns, performance, and style. Last updated: August 2025

Core Principles

  1. Use modern tidyverse patterns - Prioritize dplyr 1.1+ features, native pipe, and current APIs
  2. Profile before optimizing - Use profvis and bench to identify real bottlenecks
  3. Write readable code first - Optimize only when necessary and after profiling
  4. Follow tidyverse style guide - Consistent naming, spacing, and structure
@NeilCFD
NeilCFD / cliwoc.R
Last active September 25, 2022 19:58
CLIWOC historical ship movements animation
library(tidyverse) # 1.3.1
library(rayrender) # 0.23.6
library(sf) # 1.0-4
library(magrittr)
# Earth daymap from https://www.solarsystemscope.com/textures/download/2k_earth_daymap.jpg
image_texture_path <- "/path/to/2k_earth_daymap.jpg"
# CLIWOC Data source: https://www.historicalclimatology.com/cliwoc.html
f_cliwoc <- ("/path/to/cliwoc21.gpkg")