Description Usage Arguments Note Examples
This function walks a user through the process of understanding errors and warnings; providing applicable StackOverflow and GitHub or Google searches. Last, helps the user to format a proper StackOverflow question or GitHub issues post.
1 |
... |
Code that is giving an error or warning. |
This function cannot help with errors stemming from R's parser rejecting the code as valid code. The error will occur before our function will have been called. If such an error occurs, it means the code is not well-formed. The following SO link gives common errors that fall into the parse error class: http://stackoverflow.com/q/25889234/1000343.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
p <- 1:10
get_help(mean(LETTERS))
get_help(3*"d")
a1 <- c("a","a","b","b","c","d","e","e")
b2 <- c("01.01.2015", "02.02.2015", "14.02.2012", "16.08.2008",
"17.06.2003", "31.01.2015", "07.01.2022", "09.05.2001")
c3 <- c("1a", "2b", "3c", "4d", "5e", "6f", "7g", "8h")
d3 <- c(1:8)
df2 <- data.frame(a1,b2,c3,d3, stringsAsFactors = F)
library(dplyr)
library(magrittr)
get_help(
df2 %>%
group_by(a1) %>%
as.Date(b2, format = "%d.%m.%Y")
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.