The pipe operator is not working. I get this error message, (could not find function "%>%"). I have installed and loaded tidyverse. I even installed and loaded both 'dplyr' and 'magrittr' separately with no success. Here is a section of the code
Restart your R session and load maggritr do you get any error message or warning while doing so? My intention with this is to gather more information about your issue.
please first load your libraries and run your code to trigger your issue ... then please provide us the output from calling the sessionInfo() function.
Thanks, in this same state, can you run the following 2 commands and share the output
getAnywhere(`%>%`)
magrittr::`%>%`
p.s. the above is overkill, I can see that from sessionInfo loaded via a namespace (and not attached): contains both magrittr and dplyr.
This tells me that you have not use library(dplyr) nor library(magrittr) to load them, if you had they would be listed under 'attached_packages', and you have no attached packages, impliying you didnt make any library()/require() statements in your session.
Just a sec. Correct me if I am wrong, given that I am now learning R. I am using r markdown. The first chunk has the following code:
library(janitor)
library(skimr)
library(lubridate)
library(dplyr)
library(magrittr)```
What could I be doing wrong that magrittr and dplyr do not attach yet I have used the library() function on them?