r/rprogramming Nov 14 '20

educational materials For everyone who asks how to get better at R

744 Upvotes

Often on this sub people ask something along the lines of "How can I improve at R." I remember thinking the same thing several years ago when I first picked it up, and so I thought I'd share a few resources that have made all the difference, and then one word of advice.

The first place I would start is reading R for Data Science by Hadley Wickham. Importantly, I would read each chapter carefully, inspect the code provided, and run it to clarify any misunderstandings. Then, what I did was do all of the exercises at the end of each chapter. Even just an hour each day on this, and I was able to finish the book in just a few months. The key here for me was never EVER copy and paste.

Next, I would go pick up Advanced R, again by Hadley Wickham. I don't necessarily think everyone needs to read every chapter of this book, but at least up through the S3 object system is useful for most people. Again, clarify the code when needed, and do exercises for at least those things which you don't feel you grasp intuitively yet.

Last, I pick up The R Inferno by Pat Burns. This one is basically all of the minutia on how not to write inefficient or error-prone code. I think this one can be read more selectively.

The next thing I recommend is to pick a project, and do it. If you don't know how to use R-projects and Git, then this is the time to learn. If you can't come up with a project, the thing I've liked doing is programming things which already exist. This way, I have source code I can consult to ensure I have things working properly. Then, I would try to improve on the source-code in areas that I think need it. For me, this involved programming statistical models of some sort, but the key here is something that you're interested in learning how the programming actually works "under the hood."

Dove-tailed with this, reading source-code whenever possible is useful. In R-studio, you can use CTRL + LEFT CLICK on code that is in the editor to pull up its source code, or you can just visit rdrr.io.

I think that doing the above will help 80-90% of beginner to intermediate R-users to vastly improve their R fluency. There are other things that would help for sure, such as learning how to use parallel R, but understanding the base is a first step.

And before anyone asks, I am not affiliated with Hadley in any way. I could only wish to meet the man, but unfortunately that seems unlikely. I simply find his books useful.


r/rprogramming 2d ago

Social Network Analysis

3 Upvotes

Hey everyone

I'm taking a class on social network analysis, and I was wondering if there were any resources online that I can use because the content in the class is not great at all and I don't want to blindly rely on chatgpt to pass. do you guys recommend any online or youtube courses that I can follow?


r/rprogramming 2d ago

[sciREPL v1.0.1] Substantially improved TypeR support — testers wanted for Play Store launch

1 Upvotes

I'm releasing sciREPL v1.0.1, which brings major improvements to TypeR integration. sciREPL is a Jupyter-style notebook app that lets you mix multiple languages in a single worksheet.

**Why we forked TypeR**

The standard TypeR type system couldn't express variable-argument (variadic) inputs in its standard-library declarations. We extended it to properly type variadic R functions like `cat`, `paste`, `sprintf`, and `c`.

**What's new in v1.0.1**

* **Direct TypeR notebook cells** — no longer need to wrap most code in R blocks * **Named and heterogeneous variadic arguments**, including forwarding collected args into another variadic call * **Named** `#!source` **cells** for storing reusable TypeR source without executing it or producing output * **Prolog → TypeR compilation**, with generated code placed in a named cell ready for execution * **Two included typR workbooks**: "TypeR Introduction" and "Prolog Generates TypeR" — both accessible via *Browse Packages, Bundles & Workbooks* in the sciREPL menu, along with workbooks for other supported languages

**Other supported languages**

TypeR is one of several kernels sciREPL ships with. The full list:

* **R** (webR / WASM) — full R with `install.packages()`, plotting, and SharedVFS * **Python** (Pyodide) — NumPy and SymPy preloaded, `%pip install` for pure-Python packages * **Prolog** (swipl-wasm) — full SWI-Prolog * **ClojureScript** (Scittle v0.6.22) — SCI-based, no build step; also a Prolog code generation target via UnifyWeaver *(experimental)* * **Bash** (brush-wasm) — Unix shell with coreutils, findutils, and grep * **JavaScript** — native browser execution, zero download * **Lua** (Fengari) — lightweight, with notebook cell access via `nb.read()` / `nb.write()`

All kernels share a **SharedVFS** in-memory filesystem, so data flows freely between languages in the same notebook.

**Free & open-source version**

Available as a PWA and an Android app:

* PWA: [https://s243a.github.io/SciREPL/\](https://s243a.github.io/SciREPL/) * Source: [https://github.com/s243a/SciREPL\](https://github.com/s243a/SciREPL)

**Android Pro version**

An Android-only Pro version adds AI-assisted building and bundles more packages locally (with CDN fallback for the rest). AI is integrated via direct API key connections to models, as well as remote connections to coding agents (e.g. Claude Code and Codex).

**Data privacy**

We store no data on an external server. All data is stored locally on your device; packages not bundled with the app are fetched from the CDN when needed. The app is Capacitor-based, so it runs with web browser-level sandboxing. JavaScript, Bash, and TypeR are always offline. Prolog, Python, and ClojureScript are bundled in both free and Pro versions. Lua fetches from CDN on first use. The Pro version also bundles R locally; the free version fetches the R runtime from the CDN (\~50 MB, cached after first use). Note that additional R packages (e.g. tidyverse, ggplot2) are not pre-installed in either version — they can be installed at runtime via `install.packages()`, fetching from the CDN as needed.

**Become a tester**

I need testers before submitting either version to the Play Store. Testers get early access to both the free and Pro versions at no cost. Reply here or DM me if you're interested. In the meantime, you can try the free version in your browser or sideload it via adb.


r/rprogramming 6d ago

Apple Neo

4 Upvotes

Does anybody have experience running R on one of the new Neo's, and how did it perform? They seem like good budget laptops but I need something capable of running R without crashing out..


r/rprogramming 8d ago

Made a free 15-part "R Foundations" video course — every lesson has the code and a run-it-in-your-browser console

Thumbnail
2 Upvotes

r/rprogramming 10d ago

I built 12 free R biostatistics cheat sheets (gtsummary, survival, causal inference, mixed models…) — searchable, no signup

Thumbnail
rverseanalytics.com
8 Upvotes

r/rprogramming 11d ago

A free browser-based demo to try {gtsummary} Table 1 tables on clinical data

Thumbnail
1 Upvotes

r/rprogramming 11d ago

Anyone have replit core ?

0 Upvotes

I'm Out of monthly credits my app is almost ready to publish.


r/rprogramming 16d ago

foundryR: tibble workflows for Azure AI Foundry from R

5 Upvotes

I have been working on `foundryR`, a development-version R package for using Microsoft Azure AI Foundry from dataframe-oriented workflows.

The main design choice is "dataframe in, dataframe out." The package returns tibbles for things that are otherwise awkward to keep inside R pipelines:

* Azure AI Content Safety: moderation, groundedness, prompt-shield checks, protected material, blocklists * strict structured extraction using JSON Schema * embeddings and pairwise similarity * Batch and Files API workflows * Responses API calls, tools, stored agents, usage fields, and raw response capture * codebooks, agreement, consistency, and provenance helpers for annotation work

The docs are here:

[https://farach.github.io/foundryR/?utm\\_source=reddit&utm\\_medium=community&utm\\_campaign=foundryr\\_launch\](https://farach.github.io/foundryR/?utm_source=reddit&utm_medium=community&utm_campaign=foundryr_launch)

GitHub:

[https://github.com/farach/foundryR\](https://github.com/farach/foundryR)

Install:

install.packages("pak")
pak::pak("farach/foundryR")

A small example of the package shape:

foundry_moderate("Thanks so much for your help, this was a great session.")
#> # A tibble: 4 x 6
#>   text category severity label blocklist_matches raw_response

It is not on CRAN yet, and some helpers wrap preview APIs. I would be grateful for feedback from people who use R with Azure AI Foundry: where is setup confusing, what output shapes are missing, and what should be documented before a broader release?


r/rprogramming 24d ago

I need input from R and Pokemon fans

Post image
8 Upvotes

I made last summer an excel table with all pokemons and their ratings, I did do a base analysis on excel but it was slow and tedious, this summer I want to use R to practice, and go into a statistical analysis of my pokemon preferences.

But I am unsure how to proceed, to start off, attached there is a picture of the data I have on excel: the pokemon number, name, my rating out of 5 (with 5.5 being reserved for my favourite designs, only 27 out of almost 1500 pokemons, counting forms etc), and their 2 types, I will add on R an extra column to cound pokemon archetypes, like starters, legendaries, mythical etc.

On excel I have all the pokemons divided in generations, 1 "column" for gen 1, 1 "column" for gen 2 etc, on R I was thinking of using dataframes, do you think I should use 1 single dataframe (adding then a factor to match the pokemon to their gen) or should I divide generations into different dataframes? what would be the advantages and disadvantages of both approaches?

How should I handle alternate forms? for example, megaevolutions, regional forms, etc, I do want to rate them as separate, but they do have the same dex number as the original pkmn, but i feel like that would be confusing. I'm also unsure "where to rate them" in my excel I rated them on the same column as the generation they were introduced, for example alolan vulpix is not rated for gen 1, but for gen 7. I think the regional forms will be done like this, but for mega evolutions and dynamax forms, I will consider them as separate, not belonging to any generation, but as their own separate groups, since the design phylosophy is different from base pokemons. and 2 extra questions, since we had 2 different waves of megas (technically 3, but X/Y and omega/alpha came out in the same gen) should I consider them in 1 group or subdivide them, there is quite a difference between mean and median of the 2 waves. And what about Hisui? it technically came out during Gen 8 but it also does feel a bit different, but with only 24 new pokemons/forms it is a quite small pool.

As a last question... anything else I should include/consider? I don't really care about seeing any correlation between stats and my ratings, also because my ratings are purely how much I like the pokemon, not how good they are.

Thank you for reading all of this, I appreciate any feedback, as i don't want to start and then realise that i should've done it differently.


r/rprogramming 27d ago

alineR package alternatives

5 Upvotes

Hello there! I wonder whether anyone has used the R package alineR. I want to perform feature-weighted linguistic distance calculations but the package has been removed from the R cran project. I know one can still install the last version from the archive but bugs are not corrected. Does anyone know or can recommend any alternatives? Thank you!


r/rprogramming 28d ago

I built rpx and rrepo - a new package manager and registry.

Thumbnail
github.com
3 Upvotes

r/rprogramming 28d ago

Does R have an ARM64 installer?

2 Upvotes

I got a new laptop from Best Buy a couple days ago and need to reinstall R.

The issue is that its an ARM type of machine (snapdragon processor instead of the more common intel/AMD processor). It uses the ARM64 runtime installer rather than the standard x64 or x86 installer that a lot of programming languages uses (mainly for Intel/AMD machines). Both machines uses Windows 11 as the OS.

Anyway I have a bunch of .r and .rmd files that I can easily transfer over from my old laptop to the new one via USB Flash drive, but will there be a compatibility issue as the old machine used Intel processor wheras this new one has the Snapdragon X processor?


r/rprogramming Jun 22 '26

Regression without leaving SQL: lm + an R-style formula

Thumbnail
kolistat.com
3 Upvotes

r/rprogramming Jun 21 '26

R programming for whom?

Thumbnail
1 Upvotes

r/rprogramming Jun 21 '26

How to learn R language as a beginner in coding??

Thumbnail
1 Upvotes

r/rprogramming Jun 20 '26

Looking for suitable courses

6 Upvotes

I'm looking for recommendations for courses that meet the following criteria

3-5 days duration, consecutive days (longer the better)

Time: between Sept to December

Machine learning using R or similar topics

Must be in person attendance

Location is flexible: any continent considered

Instructional language: English

Any suggestions or recommendations, both university and company hosted are of interest


r/rprogramming Jun 20 '26

Complex Parameter Management and Reusable Computational Tasks

Thumbnail github.com
0 Upvotes

r/rprogramming Jun 17 '26

R programming

Thumbnail
0 Upvotes

I’ve an oral exam for r programming what kind of questions can they ask?


r/rprogramming Jun 17 '26

Veritect: A stateless, zero-trust schema drift detector written in Go

0 Upvotes

Hey everyone,

I wanted to share Veritect, a lightweight command-line utility I wrote in Go to handle database schema drift validation inside automated CI/CD runners without relying on persistent tracking databases or external state files.

The Problem It Solves:
Most existing schema tracking tools require heavy cloud state files or persistent database tracking tables, which add massive surface area to enterprise security compliance audits.

The Solution:
Veritect compiles down to a native Go binary and runs entirely within the temporary CI runner environment. It queries standard system catalog tables (information_schema) to pull metadata, maps the rows into Go structs, and enforces an O(N log N) alphabetical sorting constraint across the schema elements to ensure the final drift evaluation is fully deterministic and free of false-positive build failures.

Implementation Details & AI Disclosure:
The codebase is written entirely by me in Go. I used AI as an assistant to help brainstorm the sorting logic and optimize structural formatting, but every line of the core logic was written and verified manually.

Example Usage (GitHub Actions Workflow Specification):

yaml

- name: Check Schema Drift
  run: go run ./cmd/veritect
  env:
    DATABASE_URL: \${{ secrets.DATABASE_URL }}
    SLACK_WEBHOOK: \${{ secrets.SLACK_WEBHOOK }}

Use code with caution.

I am 14 years old and trying to master writing clean, idiomatic Go for systems engineering. I would love some technical feedback on the codebase structure, driver handling, and error patterns.

Repository: https://github.com/baseline-architect/veritect.git
Documentation: https://veritect.vercel.app


r/rprogramming Jun 04 '26

RedditExtracto(R) down

5 Upvotes

Good morning, for the past few days I haven’t been able to scrape data using the R package “RedditExtracto(R)” due to stricter API restrictions on the platform.
Do you think a more up-to-date, fully functional version of the package will be available, or will I have to look for other solutions?


r/rprogramming May 28 '26

[help] Integrating datasets for GLMM in R?

2 Upvotes

Hi, y'all. New to reddit so please excuse me if I'm not quite doing this right...

I've got a dataset of plant morphology (ex: number of leaves, number of seed-producing structures) and percent cover/density data. Some data was recorded monthly though some seed stuff is just once per year when close to maturity. I also have a dataset from a data logger that was recording temperature across my sites.

I was advised to use a GLMM to look at how temperature from the previous and/or current growing season affect(s) plant morphology/percent cover/density. Problem is, my advisor and I are scratching our heads at how to integrate the datasets into one tibble for a GLMM. As an example, if I have roughly 100 plants I looked at for seed data, how do I add my nearly 300,000 temperature observations to the seed observations for a GLMM? I can easily slim down the data to low/avg/max per day or whatever other time period, but how do I add it to my seed data in a way that won't lose the variability of the temperature over time?

Can I integrate these datasets so I can investigate the relationship of temperature and plant characteristics/percent cover? If so, how and what should the resulting dataframe/tibble look like? Should I be using a different kind of analysis entirely?

Thanks for any help y'all can give!


r/rprogramming May 26 '26

LatinR 2026 call for submissions extended!

Thumbnail
3 Upvotes

r/rprogramming May 26 '26

Hep plz : R package RedditextractoR

2 Upvotes

How do I remove unwanted texts from words cloud ?

Context : used RedditextractoR to analyze discussion over years on various threads.

Got word cloud that has unwanted (non English) , some no priority words on the cloud. Just want to get rid of them .

Tia !


r/rprogramming May 24 '26

(help post) trying to analyze biomass using sentinel-2 and landsat-8

1 Upvotes

greetings everyone, i am doing research on the topic about estimation of above ground carbon stock using field measurement and remote sensing approach but i dont have any specific knowlegde and skills about remote sensing but i can learn and develop skill. so i am completely confused how can i download and process the metadata. if anyone can give me outline on how to carry out the task...advice will be appreciated