I am having few problems with using some specific R functions in Jupiter notebook. All my R code works perfectly until I am trying to use "new" functions, such as pivot_longer() (from tidyr package) and fct_lump_min(from forcats package). This is the error I am getting:
Error in pivot_longer(., everything(), names_to = "variables", values_to = "num_levels"): could not find function "pivot_longer" Traceback:
- ramen_data_factor %>% summarise_all(nlevels) %>% pivot_longer(everything(), . names_to = "variables", values_to = "num_levels")
- withVisible(eval(quote(
_fseq
(_lhs
)), env, env)) - eval(quote(
_fseq
(_lhs
)), env, env) - eval(quote(
_fseq
(_lhs
)), env, env) _fseq
(_lhs
)- freduce(value,
_function_list
) - withVisible(function_list[k])
- function_list[k]
However, their "old"correspondent functions, such as gather() and fct_lump() work fine! Also, all the other functions from these Tidyverse packages work (indeed all the libraries are correctly loaded). Since this is the material for a course, I really would like to use the new functions and not the deprecated ones. Does this happens to everybody or should I make some adjustment in my Anaconda distributions settings?
Thanks a lot!