06:00
Day 25
Carleton College
Stat 220 - Winter 2026
When you and your teammates work on the lines of code within a document and both try to push your changes, you will run into issues.
Merge conflicts happen when you merge branches that have competing changes, and Git needs your help to decide which changes to incorporate in the final merge.
Our first task today is to walk you through a merge conflict!
=== separate your changes (top) from their changes (bottom).HEAD, which indicates that these are your changes.some1alpha2numeric3string4. This is the hash (a unique identifier) of the commit your collaborator made with the conflicting change.<<<, ===, and >>> lines.day25-yourgroup repo and open app.R
Open the following shinyapps and explore a little bit.
With the folks around you, discuss:
06:00
Choose one person to do the following in your repo:
data-prep.R in the home folderdata/ folder within the app folder
write_rds(manager_survey, "/data/manager-survey.rds")app.R file, load the data with read_csv
manager_survey <- read_rds("data/manager-survey.rds")05:00
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
textOutput("panel")
),
mainPanel(
tabsetPanel(
id = "tabset",
tabPanel("panel 1", "one"),
tabPanel("panel 2", "two"),
tabPanel("panel 3", "three")
)
)
)
)
server <- function(input, output, session) {
output$panel <- renderText({
paste("Current panel: ", input$tabset)
})
}
(1 per group) Reorganize the app so that the two graphs show up on different panels, tabsets, or pages in a navlist. Commit and push the changes so everybody has the new version.
05:00



Add theme = bslib::bs_theme() to your ui() function, and bslib::bs_themer() to your server function to try out different options interactively

One person per group should:
Run the app, commit, and push so everybody has the updated version.
04:00
Shiny apps need to be “connected” to RStudio or a remote RStudio server
You can deploy shiny apps online
Your app and files should be in their own folder and the entire folder is what you “deploy”. You do not want multiple app.R or .Rmd files in that folder!