I have installed dplyr, but I'm getting an error message saying "could not find function"join_by"

I have installed dplyr, but I'm getting an error message saying "could not find function"join_by"

Possibly dplyr is not currently loaded?

library(dplyr)

It is loaded. However when I opened up R this morning it wanted to install updates. I installed the updates, and then got the following messages when loading my libraries:

library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

filter, lag

The following objects are masked from ‘package:base’:

intersect, setdiff, setequal, union

library(data.table)
data.table 1.14.2 using 8 threads (see ?getDTthreads). Latest news: r-datatable.com

Attaching package: ‘data.table’

The following objects are masked from ‘package:dplyr’:

between, first, last

Then when I try to execute the rest of my code, it still gives me the same error message, "...could not find function "join_by."

Try calling it explicitly:

dplyr::join_by()

Check the version of dplyr you have installed (e.g. in sessionInfo("dplyr")), as this function only exists for recent versions (> 1.1.0).

1 Like

That was the problem, I had an old version of dplyr. Thank you!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.