Question: You accidentally display a large data frame on the R console, losing all the statements you entered during the current session. What is the best way to get the prior 25 statements back?

  1. console(-25)
  2. console(reverse=TRUE)
  3. history()
  4. history(max.show = 25)

Answer: The correct answer of the above question is Option D:history(max.show = 25)