
# Week 2 - 2023-03-08 Reproducible Research with R Packages
## Before we start:
## βοΈ License
## βοΈπ¦ Icebreaker
## π©βπ«π©βπ»π Instructors
## π Resources
## π§ Exercises
## π₯ Workshop website
## ποΈ Agenda
## πGetting help
## π§βπ Helpers
## π§π½βπ» Homework
## π§ Collaborative Notes
## π«±π½βπ«²π» Code of Conduct
### Did you do the homework on your own project? Write your name below:
### If you did *not* work on your own project, write your name below:
### This document: [tinyurl.com/2023-march-R-2](https://tinyurl.com/2023-march-R-2)
* Be respectful of different viewpoints and experiences.
* Focus on what is best for the community.
* Gracefully accept constructive criticism.
* Show courtesy and respect towards other community members.
* Use welcoming and inclusive language.
-
-
-
-
- Anna: Dutch
- Anna: I added a function to mysterycoffee, I had problems with reading pipes (%>%)
- Annelies
- Annelies: R :)
- Barbara: C++, and improve my Portuguese π
- Claire but very briefly, still some unsolved errors
- Claire: Dutch, and bird calls to be able to recognize them during their breeding season this spring :)
- Elsje (no errors)
- Elsje: improve my French or learn Spanish
- Eva: French and Dutch. French because it sounds sexy, Dutch because at some point it would be nice to understand what's written around me.
- Evgeniya: Dutch, German
- Evgeniya: I have a question.
- Fatemeh (no errors)
- Fatemeh:Dutch, Spanish, Python, improving my R
- Femke: : : : : : French, because indeed it sounds, because indeed it sounds, because indeed it sounds, because indeed it sounds, because indeed it sounds, because indeed it sounds
- Fleur
- Ji: Chinese, English, Japanese, Dutch (very little ;P)
- Luc (no errors)
- Luc: French
- Mike (no errors)
- Mike: python, learn papiamento
- Pablo R.: improve my Dutch, learn modern Greek in the future.
- Pleuni (no issues)
- Pleuni: Python, Swedish
- Qi (so far so good)
- Qi:Dutch, English, R, Fortran...
- Shiva
- Stefan, even though I didn't use an actual Script, but instead I used a (functional) dummy script.
- Stefan: R for sure, also Python. Also the "academic" language of the Dutch university world (that's still very new for me π)
- Thijs (no issues)
- Thijs: Spanish, Python,
- Zhuang (no error)
- b.vreede@esciencecenter.nl
- p.rodriguez-sanchez@esciencecenter.nl
- pari: i was absent but i followed the instructions and i have some
- parvaneh
- training@esciencecenter.nl
- week 1: [tinyurl.com/2023-march-R-1](https://tinyurl.com/2023-march-R-1)
- week 2: [tinyurl.com/2023-march-R-2](https://tinyurl.com/2023-march-R-2) | [tinyurl.com/Rbackup2](https://codimd.carpentries.org/kE70-JfQQRW3BRud3EN8_g?both)
- week 3: [tinyurl.com/2023-march-R-3](https://tinyurl.com/2023-march-R-3)
- week 4: [tinyurl.com/2023-march-R-4](https://tinyurl.com/2023-march-R-4)
---
---
-Zhuang: python
-femke (no problems, just puzzled over how to use my data)
All content is publicly available under the [Creative Commons Attribution License 4.0](https://creativecommons.org/licenses/by/4.0/).
All documents for this workshop:
Barbara Vreede (she/her), Pablo Rodriguez-Sanchez (he/him)
Day 2. Wed 15 March 2023
Eva Viviani (she/her), Ji Qi (he/him), Malte LΓΌken (he/him), Thijs Vroegh (he/him)
I am using dyplr sintaxis in my package. Where should I call it? In the file with functions it seems it does not work. It is not convenient to call dyplr::%>% every time I use the pipe
Participants are expected to follow these guidelines:
Report an issue or get in touch:
This Document is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents.
To ask a question, raise your hand in the zoom window, or ask a question in the chat.
Welcome to The Workshop Collaborative Document.
What language(s) do you want to learn next (or improve on :))? If you want, tell us also why.
You can ask questions in the document or chat window and helpers will try to help you.
[CRAN](https://cran.r-project.org/)
[Testthat documentation](https://testthat.r-lib.org/reference/index.html) which contains a list of `expect_` functions.
sign language
| 13:00 | Welcome and icebreaker
| 13:15 | Recap homework & lessons learned
| 14:15 | Coffee break
| 14:30 | Testing
| 15:30 | Coffee break
| 15:45 | Testing, test coverage
| 16:45 | Wrap-up
| 17:00 | END
| Time | Topic |
|--:|:---|
### questions we had in the breakout rooms
- How to make sure that our functions are as general as possible?
- How to make sure that our end-users understand what our functions are doing?
- Should we store Data in packages? And if so, how?
- Should we use pipes (%>%/ |>) and if so, when?
- Using %>% in packages is not recommended. It reduces clarity, but if that cannot be avoided, I would use the native R's operator: |>.
π» [Workshop website](https://esciencecenter-digital-skills.github.io/2023-03-08-ds-rpackaging/)
π [Setup instructions](https://esciencecenter-digital-skills.github.io/2023-03-08-ds-rpackaging/#setup)