Skip to content

socialmixr 0.2.0

Compare
Choose a tag to compare
@sbfnk sbfnk released this 27 Oct 19:41

Major & breaking changes

  • error argument has been removed from check() and always return warnings. If you want to turn these warnings into errors, please have a look at options(warn = 2)
  • quiet argument has been removed from check(), cite(), contact_matrix(), and get_survey(). If you want to silence diagnostic messages, you should use R idiomatic mechanisms, such as suppressMessages()
  • the n and bootstrap options of contact_matrix() have been deprecated and replaced with a sample.participants argument; bootstrapping is now explained in the vignette instead
  • new matrix_plot() function to plot contact matrix
  • the use of weights has been improved and the corresponding section in the vignette expanded

Minor changes

  • world population data has been updated to 2017 by switching from the wpp2015
    to wpp2017 package
  • chkDots() is now used to ensure no argument is silently ignored by S3 methods

Internal changes

  • continuous integration is now done via GitHub Actions
  • improved robustness of survey loading and cleaning
  • get_survey() has been split into separate functions for downloading and processing survey data