Skip to content

Commit

Permalink
Update server.R by adding local =TRUE when sourcing the sampling script
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmalla authored Nov 21, 2024
1 parent b1c2fda commit 83931cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.R
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ server <- function(input, output, session) {
site_name <<-input$site_name
survey_year <<-input$input_year
#
source(paste0(getwd(),'/scripts/11_school_sampling.R'))
source(paste0(getwd(),'/scripts/11_school_sampling.R'), local = TRUE)
###Zipping the reports
files2zip <- dir('sampling outputs', full.names = TRUE)
zip(zipfile = 'sampling outputs', files = files2zip)
Expand Down

0 comments on commit 83931cd

Please sign in to comment.