2

I have tried to run an old script (R 3.4?) with R 4.0... but it doesn't work.

is_empty(c(1,1,2,3))
Error in is_empty(c(1, 1, 2, 3)) : 
could not find function is_empty

but ?is_empty still work. Where am I wrong?

delaye
  • 1,357
  • 27
  • 45

1 Answers1

3

The is_empty() function is in the purrr package for R version 3.6.3. So you have to include the purrr package in your project. To install the purrr package, do the following:

install.packages ("purrr")

And use it in each of your projects by:

library ("purrr")
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77