search_last_error: Google search R error messages

Description Usage Arguments Details Examples

View source: R/search_last_error.R

Description

Google search R error messages

Usage

1
search_last_error(additonal.term = NULL)

Arguments

additonal.term

character. Additional text to add to Google search after "R".

Details

This function takes the last error in my R session and creates a Google search for an answer. 93 percent of the time this will be to remember something I have done in 'ggplot2' 1,573 times before but forgot. For example, adding "ggplot" will search 'R, ggplot, error message here'. Heavily borrowed from & influenced from David Robinson's github.

Examples

1
2
3
library(learylib)

search_last_error("ggplot")

mleary/learylib documentation built on Sept. 6, 2020, 9:19 p.m.