Skip to content

Error: couldn't find NYTIMES_KEY environment variable #1

Description

@ngathan

I followed the first steps to set up the environment as follows:

apikey <- paste0("NYTIMES_KEY=", "mykey____")
file <- file.path(path.expand("~"), ".Renviron")
cat(apikey, file = file, append = TRUE, fill = TRUE)
install.packages("devtools")
devtools::install_github("mkearney/nytimes")
library(nytimes)
nytsearch <- nyt_search("multiculturalism", n = 2000)

But I got this error: Error: couldn't find NYTIMES_KEY environment variable

What have I done wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions