0

I am trying to use OMBP API in R but not able to use it properly

devtools::install_github("hrbrmstr/omdbapi")
library(dplyr)
library(pbapply)
search_by_title("Captain America")

Result:

Error in search_by_title("Captain America") : could not find function "search_by_title"

morgan121
  • 2,213
  • 1
  • 15
  • 33

1 Answers1

0

library(ombdapi) is missing. Put it after library(pbapply).

You've installed it, so it's available for use, i.e. it's on the hard drive in a place R knows to look if someone tells R to load the code. Which is what the library() call does.

Jason
  • 2,507
  • 20
  • 25
  • I am getting this when I try to use library(ombdapi) Error in library(ombdapi) : there is no package called ‘ombdapi’ – Sai Kiran Aug 01 '19 at 14:40
  • Did your earlier command `devtools::install_github("hrbrmstr/omdbapi")` give an error? – Jason Aug 02 '19 at 00:58
  • Don't forget to click the green check mark next to the answer, if it is the correct answer. – Jason Aug 04 '19 at 12:02