Skip to contents

Why positive affirmation

Positive affirmation are positive phrases that are typically repeated to affirm something to be true. Scientific research has some empirical evidence that positive affirmation can:

  1. Decreate health-deteriorating stress (Salleh 2008)
  2. Control self-sabotaging thoughts and speech
  3. Reduce anxiety
  4. Improve mood (Cohen & Sherman 2014)
  5. Promote positive coping
  6. Enhance self-esteem (Cascio et al. 2016)
  7. Improve problem-solving under stress
  8. Can help you find love
  9. May change outcomes

This vignette is based on this blog post by Sarah Kristenson.

Get a positive affirmation for every RStudio session start

The cheer package includes functions to give you or someone else a praise. You can append your session start up message to include a positive affirmation every time by modifying your R profile. To do this, first use the following command to locate and open your R profile.

usethis::edit_r_profile()

Then in your .Rprofile file, add the following code.

setHook("rstudio.sessionInit", function(newSession) {
  # any code included here will be run at the start of each RStudio session
  cat(cli::col_green(praise.me::praise_me()))
}, action = "append")

Now try restarting your RStudio session. You should now see a positive affirmation colored green! Feel free to change to what you like.

If you want more ideas of what to include in your RStudio session start up then check out this blog post here.