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

Update to quarto and update map #7

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.Rdata
.httr-oauth
.DS_Store

/.quarto/
Binary file modified R/paddles.dbf
Binary file not shown.
227 changes: 227 additions & 0 deletions R/paddles.geojson

Large diffs are not rendered by default.

Binary file modified R/paddles.shp
Binary file not shown.
Binary file modified R/paddles.shx
Binary file not shown.
41 changes: 19 additions & 22 deletions R/paddles_map.R
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
library("rStrava")
library("dplyr")

stoken = httr::config(token = strava_oauth("rStrava",
app_client_id = Sys.getenv("stravaID"),
app_secret = Sys.getenv("stravaSecret"),
app_scope="activity:read_all"))

my_acts = get_activity_list(stoken)

acts =
my_acts %>%
compile_activities()

gpoly_to_sfpoly = function(gpoly){
coords = googlePolylines::decode(gpoly)
sfg = lapply(coords, function(x) sf::st_linestring(x = as.matrix(x[, c(2, 1)])))
sfc = sf::st_sfc(sfg, crs = 4326)
return(sfc)
}

paddles =
acts %>%
filter(type == "Kayaking") %>%
filter(!is.na(map.summary_polyline)) %>%
mutate(geom = gpoly_to_sfpoly(map.summary_polyline)) %>%
select(name, start_date, distance, geom) %>%
sf::st_as_sf() %>%
strava_token = httr::config(token = rStrava::strava_oauth("rStrava",
app_client_id = Sys.getenv("stravaID"),
app_secret = Sys.getenv("stravaSecret"),
app_scope="activity:read_all"))

my_acts <- rStrava::get_activity_list(strava_token) |>
rStrava::compile_activities() |>
tibble::as_tibble()

paddles <-
my_acts |>
dplyr::filter(type == "Kayaking") |>
dplyr::filter(!is.na(map.summary_polyline) & map.summary_polyline != "") |>
dplyr::mutate(geom = gpoly_to_sfpoly(map.summary_polyline)) |>
dplyr::select(name, start_date, distance, geom) |>
sf::st_as_sf() |>
sf::st_set_crs(4326)

sf::st_write(paddles, "R/paddles.shp")
sf::st_write(paddles, "R/paddles.geojson", append = FALSE)


Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "296da830311dffa7fd61e2ea7177437b",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Sea Kayaking Anglesey\"\ndescription: |\n Weekend intromediate sea kayaking course\ncategories:\n - anglesey\n - course\n - sea\npreview: ska.jpg\ndate: 2018-06-10\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n- [Strava Day 1](https://www.strava.com/activities/1628016763)\n- [Strava Day 2](https://www.strava.com/activities/1632449098)\n\n\n\n\n\nTODO\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](ska.jpg){width=2016}\n:::\n:::\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "1f7ddc9534f2c4acbd7184f9d03973c1",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"First river trip\"\ndescription: |\n Club trip on the Wenning\ncategories:\n - LDCC\n - wenning\n - whitewater\npreview: wenning.jpg\ndate: 2019-08-22\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n- River Wenning\n- Punchbowl - Wennington\n\n\n\n\n\nMy first river trip. Lune was too high for the usual Thursday night paddling. Dave took me, Mandy, Steve, Alan and some of the ninja's to run the Wenning, whilst the others paddled the canal. It was quick, with lots of trees to avoid and small eddys to hit. Managed the wave at Wennington bridge before falling out and having a swim. \n\n\n::: {.cell}\n::: {.cell-output-display}\n![](wenning.jpg){width=480}\n:::\n:::\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "da63238723cb951ce5324038201b165d",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Back to Sea Kayaking Anglesey\"\ndescription: |\n Another intromediate course on Anglesey\ncategories:\n - anglesey\n - course\n - sea\npreview: ska.jpg\ndate: 2019-09-08\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n - [Strava Day 1](https://www.strava.com/activities/2688070335)\n - [Strava Day 2](https://www.strava.com/activities/2692178570) \n \n\n\n\n\n\nTODO\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](ska.jpg){width=2000}\n:::\n:::\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "f1f682b1d0a6b68c2754ceffb5d323fb",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Start of winter paddling\"\ndescription: |\n Session at Halton Rapids\ncategories:\n - halton rapids\n - LDCC\n - whitewater\npreview: halton.jpg\ndate: 2019-09-14\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n\n- [Strava](https://www.strava.com/activities/2708543174)\n\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](halton.jpg){width=675}\n:::\n:::\n\n\nThe inaugural session of the winter paddling season was on this bright autumnal morning. We met at the hut at 9am sharp as per instructions given at the talk on Thursday evening. A select band including Rhian, Lucas, Darren, Steve, Joe, Rowan, Ruby and I, ably led by Paul. Some of us not knowing quite what to expect from the winter paddling season save from it’s better than staying in and watching Coronation street and that at some stage it’s going to get proper cold. But not today though, the weather was settled as the remanents of hurricane Dorian had moved away to the north to be replaced by high pressure and settled conditions. Dorain had not filled up the rivers much though. With the water levels on the high side of low Paul suggested our options were limited to coming down the Lune on the incoming tide or playing at Halton. We decided on the later and to warm we up we would paddle there from the hut up to Halton weir. We set off upstream towards Halton just before 10am pushed along by a pleasing tail wind. We hugged river left dodging the many scullers on the river that morning. At the weir Paul tasked us with ferry gliding across the moving water from one bank to the next, only to abandon this plan when we beached in the middle of the river, the river having inconsiderately deposited a load of stones and rocks right in our path over recent weeks. Plan B was to hop over the weir and to paddle a little further upstream to practice moving water skills at the bottom of Halton rapids. At the bottom of the rapids and watched over by a sinister looking stuffed badger we got to grips with ferry gliding across the flow, breaking in and out, spotting Eddys and holding position in the flow before moving a little further up the river to fine tune on faster moving water. Steve showed us the hidden dangers of surfing when he was unexpectedly turned over by a submerged rock only to roll up in impressive fashion. Joe and Rowan demonstrated what can be achieved in a year of paddling with their stylish play boating skills. Rhian, Lucas, Darren, Ruby and I grew in confidence as the day wore on. There was only one swimmer on the day and in my defence I went over on purpose to a) test my dry suit out and b) to show Ruby how to come out of your boat in moving water and not because c) I forgot to the mantra “paddle, paddle, paddle” at a crucial moment. We paddled home about 3 but not before Paul showed us how to hug some rocks. The pleasing tail wind was now a less than pleasing head wind but the scullers had gone home at least. The head wind made the trip back a challenge to tired muscles but the sunlight playing on the water lifted the spirits. What a great day! I can think of few better ways to spend a Saturday. Thanks to Paul for his tutelage and to Rhian, Darren, Rowan, Joe, Lucas, Steve and Ruby for great company. I learnt loads not least that the best place to play a didgeridoo is under the motorway bridge! Looking forward to the next trip.\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "4d6140117cafaa345de9fe81e5728b0a",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Playing below the weir\"\ndescription: |\n Session at Halton Rapids\ncategories:\n - halton rapids\n - LDCC\n - whitewater\npreview: halton.jpg\ndate: 2019-09-21\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n\n- [Strava](https://www.strava.com/activities/2730225522)\n\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](halton.jpg){width=1024}\n:::\n:::\n\n\nSo the 2nd saturday of white water season commenced at 9am sharp on 21/09/19, with no recent rainfall it was decided to head down to halton for abit of a play. Parking up at the old railway station, everyone geared up and braced themselves for a good 10min trek carrying the kayaks to the top of the wier along the cycle track, where we would begin our fun. Following David horns lead with help from Paul, Alec and Joe the beginners took to the water consisting of myself, Darren, kamikaze Gregg, Rhian, Kim, Mandy and steve (sorry if I've missed anyone). The first task was to see how far up we could paddle up a fast flowing section of water, Alec demonstrating how it was done comfortably. Everyone got stuck in with steve winning this particular challenge but everyone looked more confident with every attempt. We then headed down stream, occasionally getting stuck on the odd rock as the water levels were low. We practised picking a line through the Rapids and eddying out, everyone managing to do this well until on one section the water tipped my kayak. No problem though as I completed my first ever roll (ok I may of cheated and used an underwater rock to flip me back round but I'm claiming it). The water started to become a little more stronger which certainly got my adrenaline going along with my enjoyment. It was then on the next eddy where I think I was a little too eager to break out and ended up going for the only swim of the day, this is where the pool sessions came in handy and I calmly got to safety and reset myself for the next section. Further down we practiced ferry gliding/riding a wave. Something I'm certainly becoming more confident in doing after having a couple of opportunities to practise in the past. Darren was certainly enjoying his improvements and added confidence; every time returning with a gleeming smile. We then finished the day off by paddling down the middle of the lower wier and paddling across the strong flow a few times. It was a nice hot sunny day, enjoyed by all. Now time for a rest and a deserved beer or two, fingers cross for a week of rain.\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "ee8b4a9abe4f53682d09dc452bdc3b91",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"The Upper Upper Lune\"\ndescription: |\n Paddle from Tebay to Lowgill\ncategories:\n - LDCC\n - lune\n - tebay\n - whitewater\npreview: tebay.jpg\ndate: 2019-09-28\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n- River Lune\n- Tebay to Lowgill\n- [Strava](https://www.strava.com/activities/2746941406)\n\n\n\n\n\nPaddle Report for Sat 28th Sept. Paddlers on-board :- Lucas, Dan, Rhian, Gregory, Holly, Steve, Alan, Darren, John, Rowan, Simon, Paul. After the recent deluge, the levels had dropped overnight and the upper upper Lune was chosen as our playground. On the drive up to the Tebay start, there was more blue sky showing than was forecast. After the shuttle, we all got onto the swift flowing water breaking the journey up by regrouping in eddies or for the occasional re-seating of a swimmer. With such so much sunshine, warmth and wind free, it was hard to believe this is our first winter journey of the year. \n\n\n::: {.cell}\n::: {.cell-output-display}\n![](tebay.jpg){width=720}\n:::\n:::\n\n\nIt was great to see everyone working hard on their breaking in / out, and paddling control skills. Getting out at Low Gill was made a little more difficult by picking our way through the fencing erected to enable works to be done on the bridge. This work is scheduled to last 8 weeks but not date was given. Thanks to everyone for making a good day great.\n\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "5d075c74690686d3d92613c8cdcf39d7",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Bron y Gader trip\"\ndescription: |\n LDCC club trip to North Wales\ncategories:\n - conwy\n - LDCC\n - whitewater\npreview: bron-y-gader.jpg\ndate: 2019-10-13\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n- River Conwy\n- Betws to Llanrwst\n- [Strava](https://www.strava.com/activities/2785976639)\n\n\n\n\n\nWell you are probably going to see lots of pics of the excellent Club trip this last weekend. Could write an essay on it but best to be brief and to the point. Most people travelled down at various times during Friday but those who could get there by the afternoon took the opportunity to walk or mtn bike. By late evening fortunately most had managed the tricky navigation there and dug into Anna's pre-prepared chilli meal. After helpings of Paul's porridge groups broke off to paddle the Tryweryn; walk along the river via Swallow Falls; stroll in Betws and partake of food; the largest group, to MTN bike in the forest with a mix of itineraries to suit all levels, some hiring bikes/first timers/an e-bike and of course the experts. Back to BYG for a brew and shower and a meal in the pub in village.\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](bron-y-gader.jpg){width=720}\n:::\n:::\n\n\nOn Sunday, after cleaning the Centre, a small group on the Dee at Llangollen, but main group on a very pleasant paddle from near Betws to Llanrwst on the Conwy meeting up with locally residing Annette. Also, a couple of strollers. Then it was home. So, there was something for everyone to do . Fine accommodation, pretty good weather and great company. Thanks to Dave Horn for organising it all. Many have already expressed their gratitude elsewhere and told of their enjoyment of the weekend.\n\n\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "15d079eb5c16f469e89077cc288f8457",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Little bit of the Leven\"\ndescription: |\n LDCC club trip\ncategories: \n - LDCC\n - leven\n - whitewater\npreview: leven.png\ndate: 2019-10-19\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n\n\n- The River Leven\n- Newby Bridge to Backbarrow\n- [Strava](https://www.strava.com/activities/2800562178)\n\nPaddle report for 19th October. Paddlers included: Gibbi, Paul, Darren, Sam, Tom, Joe, Alan, Steve, Andy and me. We headed to the Leven which was on a low. As newbies, Darren and I weren't up to the whole Leven, so we got in near Newby Bridge below the graveyard with Gibbi and Paul to do some skills work. The rest of the group got in higher up to run the more adventurous section. We practised ferry gliding, s-turns and eddying out.\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](leven.png){width=502}\n:::\n:::\n\n\nThere were number of paddlers out, including Liverpool canoe club, and a group of open whitewater canoes. After a bit of lunch we portaged back up-river to run the section again, this time picking our own way though the rocks and into eddys. We carried on to Backbarrow, getting out just before Backbarrow bridge. I was quite glad we weren't running that, although I'm sure the more advanced group enjoyed it. We caught up with the others at the Cafe Ambio car park. Turns out whilst we'd been working hard, they'd been having a leisurely cuppa! It was great to have the opportunity to practise skills with Paul and Gibbi, even though my brain hurts a bit now! Thanks for a great day paddling.\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "b0bfafcf1acb388a763ec4b23e963a4d",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Skills at Halton\"\ndescription: |\n Session at Halton Rapids\ncategories:\n - halton rapids\n - LDCC\n - whitewater\npreview: halton.jpg\ndate: 2019-11-09\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n- [Strava](https://www.strava.com/activities/2853106435)\n\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](halton.jpg){width=1024}\n:::\n:::\n\n\nSaturday,9th November with a 9am meet at the hut. Cold wind,cloudy and 4deg C.Gibbi,Alan,Steve,Rhi and Daniel were off to Halton Rapids and Thomas B came with us to give extra cover (thanks). Joe,Rowan and Thomas Ellison went off to do the Leven and then the Lower Kent but Thomas B left Halton during our lunch stop to join them for the Kent. A good 2 hour session from the top to start and lots of skills stuff. Small other group of kayakers. Surprised as a van,mini bus and car drove up to the hydro plant....turns out they were W Yorks Fire and Rescue and come to Halton for clean water to swim in. No clean rivers in Yorkshire? Well certainly not in some areas at the moment. Turns out they have had an arrangement with the hydro people for over a year and have the code for the gate!! Lunch taken in the warmth of the changing area with some lovely cake from Alan. Always worth paddling with him. Then a further 90 mins session. I think we were all pleasantly tired and ready to finish.\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hash": "ccf6bf8a0565b2aeb9dc389e816d819f",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Choosing lines\"\ndescription: |\n Session at Halton Rapids\ncategories:\n - halton rapids\n - LDCC\n - whitewater\npreview: halton.jpg\ndate: 2019-11-23\noutput:\n distill::distill_article:\n self_contained: false\n---\n\n\n- [Strava](https://www.strava.com/activities/2885419436)\n\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](halton.jpg){width=1008}\n:::\n:::\n\nPaddle report for Saturday 23rd Nov. Club paddlers on the water :- Dave, Rhi, Anna,Tom, Darren, Alan, Steve and Paul. Again this Friday, there was some rain and made Halton rapids the only real option for us all, on a low end of Low. Weather mild, overcast but the wind at river level,made it a bit parky. Tom helping Anna ease back into her stride and coaching Darren. The rest of us worked our way down from the top in pairs, making the most of what was there, reading the flow for the best lines and improving skills. Keep up the good work Rhi and Darren. We got 2 good runs down with only a few others on the water. Got off at about 1.00, just in tme for lunch and another opportunity to sample Alans fresh batch of Ginger nuts.\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Loading