report_error | R Documentation |
Report error to Google Error Reporting
report_error(message, project_id = NULL, api_key = NULL)
message |
the error report to be written out to the |
project_id |
the project id where you want to monitor the error reports |
api_key |
the google API key with authorisation to write to the Google Error Reporting API |
No return, we focus on side effect
## Not run: report_error(project_id, api_key, message) #If you have set the environmental variables "PROJECT_ID" and #"ERROR_REPORTING_API_KEY" then you can make shorter calls like so report_error(message) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.