PMassicotte/gtrendsR — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me an R package that makes it easy to pull Google Trends data directly from R and quickly visualize it.

I want a simple main function where someone can enter one or more search terms, choose countries or regions like Canada and the US, and get back the trend interest over time plus geographic interest data. It should also have a straightforward plot method so users can run something like a trends query and immediately see the results as charts or maps where appropriate.

Please include clear documentation and examples for common use cases, like comparing two sports leagues across countries. Make it installable like a normal R package, with tests, help pages, a README, and CRAN ready metadata. Also include support for people working behind a proxy, including username, password, domain, host, and port settings.

Keep the user experience simple, focus on retrieving and displaying Google Trends information, and look up current Google Trends behavior or R package guidance online if you need to.

Want more depth? Deep Reverse