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

Adding Vignettes #51

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

PhyllisMuniu
Copy link

@lilyclements This is ready to review

@PhyllisMuniu PhyllisMuniu changed the title Adding Vignettes @lilyclements this is ready for review Nov 1, 2024
@PhyllisMuniu PhyllisMuniu changed the title @lilyclements this is ready for review Adding Vignettes Nov 1, 2024
@PhyllisMuniu
Copy link
Author

@lilyclements This is ready for review

@lilyclements
Copy link
Collaborator

Wow! @PhyllisMuniu this is looking incredible! Can you try running devtools::build_vignettes() as this should generate files for these too. I'll give more feedback in each one

Copy link
Collaborator

@lilyclements lilyclements left a comment

Choose a reason for hiding this comment

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

I'll continue on Personal Carbon Emissions tomorrow :) I am going to try and get a good average (UK) example of household waste -- I think mostly using this https://www.recycle-more.co.uk/what-can-i-recycle/recycling-facts

Comment on lines +43 to +62
```{r example_data, message = FALSE, warning = FALSE, eval=FALSE, include=TRUE}
# Create an example data frame, called example_data.
example_data <- data.frame(
wet_clinical_waste = 150, # 150 kg of wet clinical waste
water_supply = 100, # 100 cubic meters of water
electricity_kWh = 500, # 500 kWh of electricity
heat_kWh = 200 # 200 kWh of heating
)
example_data
```

```{r, message = FALSE, warning = FALSE, echo = FALSE}
example_data <- data.frame(
wet_clinical_waste = 150, # 150 kg of wet clinical waste
water_supply = 100, # 100 cubic meters of water
electricity_kWh = 500, # 500 kWh of electricity
heat_kWh = 200 # 200 kWh of heating
)
example_data %>% knitr::kable()
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

@PhyllisMuniu I'm here running it "twice". This is for formatting reasons. The first time, I'm giving it to display the code.
The second time, I'm giving it to run the code, and put it into a nice table (knitr::kable)

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