1. 학습
  2. /
  3. 강의
  4. /
  5. Defensive R Programming

Connected

연습 문제

Stop being noisy!!!

The message() function is useful for giving users an indication of how their code is running.

The function simulate() performs a Monte-Carlo simulation, with the number of simulations specified by the runs argument. The function helpfully uses message() to indicate progress.

지침

100 XP
  • Call the simulate() function and suppress the output using suppressMessages(). Store the simulations in object call sim.