Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for R compatibility with GreenCode #17 #64

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

javimangal
Copy link
Contributor

Added R code for a suggested workflow using both R and python. The first approach uses the R package reticulate. The second approach uses Quarto to use nature R and python language in a single document.
I have plans to work on a small demonstration with an actual R-based project and further validation at a later time.

This refers to issue (#17)

@raar1
Copy link
Collaborator

raar1 commented Nov 29, 2024

This is great @javimangal ! Thanks so much for contributing. I will try to merge this early next week :)

Copy link
Collaborator

@raar1 raar1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @javimangal and thanks again for contributing this!

Just one thing - I see that the exercise md links to a file on your fork (https://github.com/javimangal/green-digital-skills-r/blob/main/R/code-carbon-script.R)

Would you be able to add that your branch so we merge it in the same PR? Or is your intention to keep it in a separate repo?

@javimangal
Copy link
Contributor Author

Hi! I have added new content with a demonstration comparing R packages with CodeCarbon and some simulated data. Thus, I also created a new excercise .md file that refers to Code Carbon in R due to the increased complexity of the demonstration (would be too much to keep in the same original Code Carbon .md document).

I also wanted to add an accompanying Quarto markdown (.qmd) file for workshop attendants to easily reproduce the analyses in RStudio, but this created multiple conflicts as the .qmd file was being read as an additional .md file to be displayed in the website. I solved this by creating a repository within Utrecht University that contains all necessary R scripts in a folder structure that can easily be used in RStudio to run the tutorial. These materials are now deposited in Zenodo (https://zenodo.org/records/14617645) and the link is provided in the tutorial.

Will now commit these changes.

@raar1
Copy link
Collaborator

raar1 commented Jan 14, 2025

Thanks a lot @javimangal ! I will look through this now

Copy link
Collaborator

@raar1 raar1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, I will merge this now and work on a new release of the website :)

@raar1 raar1 merged commit c667a10 into esciencecenter-digital-skills:main Jan 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants