“Jaysis, ye don’t look that old,” Buckley laughs, before bidding him farewell. He recalls his memories of matches on Leeside in the early 90s. The photographer is in his 40s and from Cork. “Why are ye posing so tense for, Git,” Buckley teases. They wait before crossing to the other side of the road and pose for a selfie together, making sure the camera is tilted just enough to capture Forrester and Buckley in the background. One man and his son cop the Dublin rivals. Irish rugby fans milling about town before the November Test with Argentina float by without a second glance as the pair pose side-by-side on the steps of the bridge for photographs. The sun bounces off the Liffey and the cold in the air is biting. It’s 12pm on the Sunday before the final. See sport differently with The42 Membership and get closer to the stories that matter with exclusive analysis, insight and debate.“Git” from No.1 Paul Street on the north. “Bucko” from Countess Markievicz House on the south side. This Cup final bounds their story once more. Kids who first played alongside each other at Fairview Park with Belvedere U17s, became men in the same dressing room at Dalymount Park when Pat Fenlon was manager a decade ago, but went their separate ways in the League of Ireland soon after. They are two Townies from opposite sides of the river who will face each other in the middle of the pitch at the Aviva Stadium for tomorrow’s FAI Cup final. For my independent research and side projects though, the approach I outlined above works perfectly for me.THE HA’PENNY BRIDGE is an obvious meeting point.Ĭlerys’ clock was another suggested starting place, and while this rendezvous isn’t romantic, Bohemians captain Keith Buckley and St Patrick’s Athletic midfielder Chris Forrester have agreed for a wistful stroll down memory lane among the places, people and moments that have shaped them. This is where here(), and to a greater extent, Docker, excel.
Better git it in your soul analysis code#
Anyone else opening these files on another computer or cloning them from Github will need to change file paths to make the code run.
Better git it in your soul analysis portable#
I should mention that this approach works very well for me personally, but it’s not portable code that I can send to a collaborator without them doing any work. Alternatively, you could not end your file paths with /, and use paste(sep = "/"), but that’s more typing every time you want to reference a file path. Since we ended our file paths in wd with a / earlier, this works beautifully. Notice that we use paste0(), which concatenates the two character strings without a separator. Ggsave(p, filename = paste0(wd$output, "plot_1.png")) P <- ggplot(sr, aes(age, height)) + geom_point() Sr <- read_csv(paste0(wd$data, "survey_results.csv")) How would we use this? For example, let’s say we want to bring in the file survey_results.csv in the data folder, make a plot, and then export that plot to the output folder. wd$data # "C:/Users/richpauloo/Documents/Github/my_project/data/" wd$output # "C:/Users/richpauloo/Documents/Github/my_project/output/" I access each list element with the $ operator. Wd$output <- "C:/Users/richpauloo/Documents/Github/my_project/output/" Wd$data <- "C:/Users/richpauloo/Documents/Github/my_project/data/"
# commonly used paths in my working directory Instead, what I do now is start my scripts with a list that stores a character string for each commonly used path in my working directory (a trick my friend Ben showed me). I used to use here(), but have since moved away from it, since it creates loads of temporary files that interfere with my git workflow. RProfile file to auto-detect your working directory. There are all sorts of ways to organize file paths, including using here() and augmenting your. Instead, cleverly manage your file paths.