Laiyang9319 / Coding-in-R-for-Policy-Analytics

MIT License
0 stars 0 forks source link

Knitting error in Lab 6 #3

Open swong17919 opened 2 months ago

swong17919 commented 2 months ago

I've been running into this issue where R does not recognize dplyr commands when knitting to html:

Screenshot 2024-07-14 at 2 32 30 AM

Here's my code:

OccupationData |> left_join(TechnologySkills) |> group_by(Title) |> summarize(HotTechnology = n()) |> arrange(-HotTechnology) |> head(10)

Laiyang9319 commented 2 months ago

The pip sign should be %>%, nor |>.

swong17919 commented 2 months ago
Screenshot 2024-07-14 at 8 07 32 PM

I've changed the pipe symbol to %>% and R gives me an error that it's not recognized. Due to time, I think I'm going to add add eval = FALSE to each chunk

swong17919 commented 2 months ago

Never mind, turns out I had to reload dplyr