You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using your package for years in the past so thank you SO much for creating it.
Today I tried installing it again and I am running into an error and I wonder where it could come from as it always worked perfectly for me in the past. The Auth is working perfectly.
Steps to reproduce the problem
## Mark Edmondson (http://markedmondson.me)
library(searchConsoleR)
library(googleAuthR)
website <- "XXX"
start <- Sys.Date() - 545
end <- Sys.Date() - 3
## what to download, choose between data, query, page, device, country
download_dimensions <- c('date','query')
## what type of Google search, choose between 'web', 'video' or 'image'
type <- c('web')
## other options available, check out ?search_analytics in the R console
## Authorize script with Search Console.
## First time you will need to login to Google,
## but should auto-refresh after that so can be put in
## Authorize script with an account that has access to website.
scr_auth()
## first time stop here and wait for authorization
## get the search analytics data
data <- search_analytics(siteURL = website,
startDate = start,
endDate = end,
dimensions = download_dimensions,
searchType = type,
rowLimit = 25000,
walk_data = "byDate")
## do stuff to the data
## combine with Google Analytics, filter, apply other stats etc.
## write a csv to a nice filename
filename <- paste("search_analytics",
Sys.Date(),
paste(downloadmensions, collapse = "",sep=""),
type,".csv",sep="-")
write.csv(data, filename)
Expected output
When running the script I should get the normal output
Actual output
Selection: 1
Fetching search analytics for url: XXX dates: 2019-12-31 2021-06-25 dimensions: date query dimensionFilterExp: searchType: web aggregationType: auto
Batching data via method: byDate
Will fetch up to 25000 rows per day
Error: $ operator is invalid for atomic vectors
Thanks for the feedback! It may be that "byDate" is returning a day with no data and causing a problem? Could you try "byBatch" ? Or change the date ranges to see if you can narrow down when it happens
What goes wrong
Hi Mark!
I have been using your package for years in the past so thank you SO much for creating it.
Today I tried installing it again and I am running into an error and I wonder where it could come from as it always worked perfectly for me in the past. The Auth is working perfectly.
Steps to reproduce the problem
Expected output
When running the script I should get the normal output
Actual output
Session Info
The text was updated successfully, but these errors were encountered: