Aan de slagGa gratis aan de slag

The Final Countdown

What are good uses of a finalize() method for your R6 class? Choose all the options that apply.

  1. Closing connections to a database.
  2. Removing all objects in the global environment.
  3. Reverting settings to global options() (docs) or graphics par() (docs) parameters.
  4. Forcing a garbage collection.

Deze oefening maakt deel uit van de cursus

Object-Oriented Programming with S3 and R6 in R

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen