powered by
Define error and warning templates.
template.e(pat = "%s")template.w(pat = "%s")
template.w(pat = "%s")
Pattern to use, must include %s, forwarded to sprintf().
%s
sprintf()
# NOT RUN { msg <- "Something's wrong" # default e(msg) # template template.e("Whoops: %s - sorry!") e(msg) # reset template.e() # }
Run the code above in your browser using DataLab