Sometimes, RISING or TOP trends are not returned by Google Trends. Make sure that the query will not crash if this situation appends. Also, RISING and TOP trends extraction was done in two separate files. The duplicated code has been migrated in a single function (https://github.com/PMassicotte/gtrendsR/blob/fix-no-rising-trends/R/top_rising_search.R).
Sometimes, RISING or TOP trends are not returned by Google Trends. Make sure that the query will not crash if this situation appends. Also, RISING and TOP trends extraction was done in two separate files. The duplicated code has been migrated in a single function (https://github.com/PMassicotte/gtrendsR/blob/fix-no-rising-trends/R/top_rising_search.R).