package 'pull' is not available for this version of R

Please help! This is the error I am getting and I am not sure how to work around this

Bioconductor version 3.12 (BiocManager 1.30.10), R 4.0.3 (2020-10-10)
Installing package(s) 'pull'
Warning message:
package 'pull' is not available for this version of R

Acquire the S phase genes

s_genes <- cell_cycle_markers %>%

  • dplyr::filter(phase == "S") %>%
  • pull("gene_name")
    Error in pull(., "gene_name") : could not find function "pull"

pull() is a function in the dplyr package.

Try:

dplyr::filter(phase == "S") %>%
  dplyr::pull("gene_name")
1 Like

These aren't workarounds really, just a matter of finding out in which R package these functions live in. Once we know which package contains the function we need (e.g. CellCycleSorting()), we can use this function in one of two ways:

# Load the functions in a package
library(package)
function()

# Or access the function inside the package directly using ::
package::function()

I am not familiar with the function CellCycleSorting(), so you will need to find out which package contains this function and use one of the approaches described above.

1 Like

Thank you that worked!!

The next step of my code is to use the function CellCycleSorting? Is there a similar work around?