Natalie van Dis
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # SORTEE Code Club - Hacky Hour Tue March 19 9-10h UTC ###### tags: `sortee` `open-code` `reproducibility` :::warning Link to this document: https://hackmd.io/Pj5KsJSzQduk4zEYmlmkmg ::: > This is the collaborative "notebook" for Code Club Hacky Hour Tuesday March 19 09:00-10:00 UTC +00:00, run by the Member Engagement Committee of the Society for Open, Reproducible and Transparent Ecology & Evolution (SORTEE). > [Become a SORTEE member](https://sortee.org/join) > [Code Club Agenda](https://docs.google.com/spreadsheets/d/1rOOOE7ghPduwtFftG0DJJf0DXVigAdcmQ0xdEwbKQXo/edit?usp=sharing) > [Debrief of Code Club Tue Feb 20 - Kickoff meeting](https://www.sortee.org/blog/2024/03/06/2024_code_club_kickoff/) :::danger :exclamation: Make sure you are familiar with [SORTEE's Code of Conduct](https://www.sortee.org/codeofconduct/) so this can be a safe and fun place to learn and discuss. ::: :::info :bulb: **Hint:** HackMD is great for sharing information in this kind of online set up, as the code formatting is nice & easy with [MarkDown](https://www.markdownguide.org/basic-syntax/)! Just add 3 ticks (``` ` ```) for the``` code blocks ```. Otherwise, it's like a Google doc: it allows simultaneous editing. There's a section for practice down there ⬇️ ::: [ToC] ## Topic of today's Hacky Hour and how to join: The Hacky Hour will revolve around [the 4 R’s of Code review](https://doi.org/10.1111/jeb.14230): **R**eported, **R**un, **R**eliable, **R**eproducible. Come share your code mistakes, problems, tips and tricks; and **help build the SORTEE library of code mistakes**! The goal is twofold: the normalization of coding errors and building a resource of (common) code mistakes that you can use during code review. There will also be the opportunity to put up your code for (informal) peer-review. :::danger :exclamation: You can find the zoom link for today's Code Club on **SORTEE's Slack** which you will get access to by [becoming a SORTEE member](https://sortee.org/join). ::: ## ICE BREAKER (practice HackMD editing) Let's learn how to use this HackMD document by answering an ice breaker question! Somewhere on the screen (probably at the top), you should see three icons :pencil2: :desktop_computer: :eye:(a pencil, a two-column window, and an eye). You can add your answer by clicking the edit button :pencil2: (the pencil). **Q: What is the word for _computer_ in your first/second/third language?** _Answers:_ * Computer (Dutch) * Computer (English)+1 * Computer (German)+1 * Tietekone (Finnish) * Ordinateur (French)+1 * Dator (Swedish) * Sanganak (Hindi) * Ordenador (Spanish) ## Request a code review Code Club can play an important role in promoting code review during development to normalize sharing code and making coding errors. Code Club can also provide code review immediately pre-publication through a code pre-check. :::warning **Would you like your code to be checked by peers?** You are very welcome to request it here! ::: :::info :bulb:**Tip** You can use SORTEE's [Code Club github](https://github.com/SORTEE/peer-code-review) to do the code review by adding your code review request and the code review as an issue (how-to explained on the page). ::: - [ ] **Put your name here and add the following details below:** - **Research topic:** briefly describe what the code is about/does so people can judge whether they have the right expertise to help - **Coding language:** e.g. R, python, shell... - **Code status (pick one):** in-process / pre-publication / post-publication - **Code review goal:** briefly describe what you would like to get out of a code review session - **Preferred type of code review (pick one):** group / 1-on-1 - **Code reviewer:** :exclamation:_put your name here to volunteer to review this code!_ - [ ] **Put your name here and add the following details below:** - **Research topic:** briefly describe what the code is about/does so people can judge whether they have the right expertise to help - **Coding language:** e.g. R, python, shell... - **Code status (pick one):** in-process / pre-publication / post-publication - **Code review goal:** briefly describe what you would like to get out of a code review session - **Preferred type of code review (pick one):** group / 1-on-1 - **Code reviewer:** :exclamation:_put your name here to volunteer to review this code!_ - [ ] **Put your name here and add the following details below:** - **Research topic:** briefly describe what the code is about/does so people can judge whether they have the right expertise to help - **Coding language:** e.g. R, python, shell... - **Code status (pick one):** in-process / pre-publication / post-publication - **Code review goal:** briefly describe what you would like to get out of a code review session - **Preferred type of code review (pick one):** group / 1-on-1 - **Code reviewer:** :exclamation:_put your name here to volunteer to review this code!_ ## Share your code mistakes, problems, tips & tricks We have four breakout rooms standing ready in zoom, one for each of [the 4 Code Review R's](https://doi.org/10.1111/jeb.14230). **Join one of the breakout rooms and start discussing!** You can join a room based on the code review _R_ you are most interested in; the problem/mistake you'd like to share; the problem/mistake you have tips & tricks for etc. :::info :bulb: This is the place to ask for help and share your coding issues and mistakes! Add your questions, problems and/or mistakes under the code review R you think it belongs to. ::: :::warning :raised_hands: If you feel comfortable, please add your coding mistakes (and potentially how to recognize them) to the [SORTEE Library of Code Mistakes](https://docs.google.com/presentation/d/12QN3WUc5v1Df7OArEox2U7l_N_qnHHuwzjCYiI4idC8/edit?usp=sharing). This way we can build a resource of (common) code mistakes that people can use during code review. _NB: You can make your mistake as anonymous as you like._ ::: ### Breakout room _**R**eported_ - [ ] **Q1: What is the best way to report packages used in analysis?** - Answer: put session info/renv lock file in github (but lot of trouble for someone else to download all the packages with right version) - Answer: containerization (Docker, [binder](https://mybinder.org/)) - Answer: groundhogR (only date when package was installed) - Package managers (Nix: https://github.com/b-rodrigues/rix?tab=readme-ov-file#reproducible-environments-with-nix) - Try out in Code Club? Give your environment file to someone else - [ ] **Q2: How not to get confused with Quarto setup options (also applies to R markdown reports) so for easy conversion of scripts into reproducible reports** - A: Quarto=package which updates to markdown native to R studio, can export project into any file type; in-between-solution: right a little doc/blog recording the setup options and problems you run into normally (and don't have to relearn it every time you want to do conversion) - **Follow op Q:** How is your workflow? Start with report in mind or do this at later stage? - Not many people using markdown reports because seems like too much trouble (most only use it for teaching); but it makes it much clearer which scripts do what. More trouble/work for the code writer, but easier for the code reader than basic script - Quarto example: https://github.com/rroyaute/mantarays-iiv-analysis - Quarto example: https://github.com/kumar-a/shifting-distributions - [ ] **Q2: Type your question/problem/mistake here** - A: Discuss in your breakout room and write the answer/solution/tip here. ### Breakout room _**R**un_ - [ ] **Q1: Is there an easy way to get running time and used memory & CPU (of functions) in R/RStudio?** - A: I used to save the results from analysis (time consuming) in output folder - http://adv-r.had.co.nz/memory.html maybe? - A: memory use report button in Rstudio (in environment window); can click it while running though? - A: On remote server could use batch job, run each function as a separate batch job, then check resource usage for batch job - [ ] **Q2: Type your question/problem/mistake here** - A: Discuss in your breakout room and write the answer/solution/tip here. ### Breakout room _**R**eliable_ - [ ] **Q1: Type your question/problem/mistake here** - A: Discuss in your breakout room and write the answer/solution/tip here. - [ ] **Q2: Type your question/problem/mistake here** - A: Discuss in your breakout room and write the answer/solution/tip here. ### Breakout room _**R**eproducible_ - [ ] **Q1: Type your question/problem/mistake here** - A: Discuss in your breakout room and write the answer/solution/tip here. - [ ] **Q2: Type your question/problem/mistake here** - A: Discuss in your breakout room andwrite the answer/solution/tip here. ## Give feedback Any feedback on Code Club is welcome! Things you liked, things which could be improved, topics you would like to see in upcoming Code Clubs etc. **Feedback:** - Topic suggestion for Hacky Hour: exchange coding environment files and try to recreate each other's environment (e.g. installing all required software with versions used). Could try to figure out if there is a nice automatic way for different languages (e.g. in R, could renv package lock file be used to automatically replicate the R environment?) - Didn't split up into breakout rooms this time, but maybe nice to do so in upcoming meetings anyway? Easier to join the conversation and participate in smaller groups (e.g. 4 people groups) - Like the HackMD file! Maybe open it up and post the link some time already before the meeting so that people have longer time to sign up for code review? Instead of having to do it on the spot - .... - .... - .... ## Useful links Add here any links you think could be useful for Code Club. - [Andrew Heiss blog](https://www.andrewheiss.com/blog/) Some good blog inspirations

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully