Skip to content

Commit 0f94356

Browse files
committed
draft r girls blog post
1 parent 84a3e39 commit 0f94356

File tree

6 files changed

+69
-4
lines changed

6 files changed

+69
-4
lines changed

.Rhistory

Whitespace-only changes.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
**/.DS_Store
33
.Rproj.user
44
/_site/
5-
forwards.github.io.Rproj
5+
forwards.github.io.Rproj
6+
.Rhistory

R/optimize_photo.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ optimize_img <- function(
1818
compression = "Zip", # only really makes difference for png
1919
format = "png" # recommend "png", can use NULL to get same format as input
2020
){
21-
img <- image_read(file.path(image_dir, file))
21+
img <- image_read(file.path(input_dir, file))
2222

2323
if (image_info(img)$width > width){
2424
# resize to `width` px, using specified filter to sample pixels
@@ -29,12 +29,12 @@ optimize_img <- function(
2929
# strip metadata (may include date photo taken colour profile, colour space
3030
if (strip) img <- image_strip(img)
3131

32-
if (is.null(format)) format <- file_ext(files[i])
32+
if (is.null(format)) format <- file_ext(file)
3333

3434
output_dir <- file.path(input_dir, "optimized")
3535
if (!dir.exists(output_dir)) dir.create(output_dir)
3636
output_file <- file.path(output_dir,
37-
paste0(file_path_sans_ext(files[i]), ".",
37+
paste0(file_path_sans_ext(file), ".",
3838
format))
3939
image_write(img, output_file,
4040
format = format, quality = quality, compression = compression)
74.7 KB
Loading
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: R Girls Open Event 2025
3+
author:
4+
- name: Heather Turner
5+
- name: Ella Kaye
6+
date: "2025-07-26"
7+
categories: [community]
8+
description: "Report of the R Girls Open Event 2025."
9+
draft: true
10+
---
11+
12+
Forwards members Heather Turner and Ella Kaye were invited to attend the
13+
"Data Science for Girls" open event hosted by
14+
[R-Girls](https://greenoak.bham.sch.uk/r-girls-school-network/) at
15+
[Green Oak Academy](https://greenoak.bham.sch.uk/), Birmingham, UK on
16+
July 9 2025. They joined other guests from [Ascent](https://www.ascent.io/)
17+
and [Health Data Research UK](https://www.hdruk.ac.uk/about-us/) to
18+
find out how students at this girls' school have been using R.
19+
20+
![From left to right: Yanica Said (Ascent), Heather Turner (Forwards), ?? (Teacher), Razia Ghani (Head Teacher), and Ella Kaye (Forwards) at the R Girls Open Event](group_photo.jpg)
21+
22+
Below Heather and Ella report on this event.
23+
24+
## Website Presentations
25+
26+
The day started with an assembly of Years 7-9 (ages 11-14, around 50 students),
27+
the school teachers and guests. Students from Years 8 and 9 (age 12-14)
28+
presented websites they had created with
29+
[Distill](https://pkgs.rstudio.com/distill/) as part of their Year 8 IT
30+
lessons.
31+
32+
The girls had worked in small groups to design a website for a fantasy
33+
online shop. This allowed a lot of creativity in designing logos, selecting
34+
photos and writing marketing content. The students revealed their love of
35+
makeup, fashion, animals, and more. Some highlights for us were a sweet treat
36+
shop (very professional-looking!), a site about snow leopards (presented with
37+
great humour!), and a shop promoting Afghani fashion (beautiful photos!).
38+
39+
Each group gave a short speech and with a live demo. We were impressed
40+
that the girls had got to grips with GitHub as well as editing the R markdown
41+
source.
42+
43+
## Computer Practical
44+
45+
After a break, we joined a lesson being taught by Anisa Nawaz to
46+
Year 7 students. It was only their second lesson using R and they were
47+
learning how to create sequences with `seq()`, working in an R markdown
48+
template.
49+
50+
Along with other guests, we assisted by helping the
51+
students to trouble-shoot issues. Understanding how to generate decreasing
52+
sequences with a negative `by` argument required a bit of thinking, while
53+
breaking R markdown chunks by typing code in the wrong place caused some
54+
practical issues. But the girls did well!
55+
56+
## Summary
57+
58+
Overall, we were happy to see the enthusiasm from both staff and students
59+
in using R to support the girls' studies. There is a lot of pride in this
60+
activity, as demonstrated by the display that greets you when you walk in:
61+
62+
![The R Girls display right inside the main entrance](r_girls_display.jpeg){fig-alt:"A noticeboard visible on the facing wall, looking through an open door. On the board, a display with a flowery border, titled 'R-Girls Schools Network', followed by the pink R Girls logo. The display has examples of code and graphs, plus large text boxes with information.}
63+
Hopefully this experience gives the girls a positive view about using R or
64+
other languages, that they can build on in the future.
44.2 KB
Loading

0 commit comments

Comments
 (0)