Screenshot of the readme.
# This is a basic example which shows you how to solve a common problem:
sum[1]
Error in sum[1] object of type builtin is not subsettable.
Call ai() to help explain what’s going on:
errbud::ai()
Output (this example from local gpt-oss:20B)
The error “object of type ‘builtin’ is not subsettable” usually means you called the subsetting operator [ ] without attaching it to a real object (e.g., x[1] vs. just [ or mis‑spelled a function name). R’s [ is an S3 generic that works on vector, matrix, data frame, list, etc., and it expects an object on its left‑hand side. In your session you only have the default packages loaded and three objects (chat, pkgs, x). The fix is simply to provide a concrete object inside the brackets. For example, if you want the first element of x, type x[1]; if you want the element of pkgs whose name is stored in chat, type pkgs[chat] (or pkgs[[chat]] if you need a single element from a list). If you intended to use a different function (say subset from base R or filter from dplyr), call that function directly: subset(x, condition) or dplyr::filter(df, condition). Once [ is attached to an actual object, the “builtin not subsettable” error disappears.