22.1 What is a spring?
You're using tibble in the first example (and later on under 22.2.3 Constructors and 22.3 Part 2: Adding aesthetics), but since you haven't called the library, it should probably be in this format: tibble::tibble.
22.2.1 Building functionality
This bit of code below is causing this error: "Error in eval(ei, envir) : '...' used in an incorrect context"
StatSpring <- ggproto("StatSpring", Stat,
...
)
This causes more problems later on, but I'm not going to point them out here as I'm sure at least some of them will go away once this problem is fixed.
EDIT: I realized that the above code wasn't supposed to be run, but later on, there is an error, Error: '...' used in an incorrect context that comes from this:
22.1 What is a spring? You're using tibble in the first example (and later on under 22.2.3 Constructors and 22.3 Part 2: Adding aesthetics), but since you haven't called the library, it should probably be in this format: tibble::tibble.
22.2.1 Building functionality This bit of code below is causing this error: "Error in eval(ei, envir) : '...' used in an incorrect context"
This causes more problems later on, but I'm not going to point them out here as I'm sure at least some of them will go away once this problem is fixed.
EDIT: I realized that the above code wasn't supposed to be run, but later on, there is an error, Error: '...' used in an incorrect context that comes from this: