Skip to content

Commit 4c515ff

Browse files
author
CIP-RIU
committed
crop measurement timming
1 parent f1de0d4 commit 4c515ff

2 files changed

Lines changed: 82 additions & 26 deletions

File tree

R/server_desing_hdagrofim.R

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5527,7 +5527,7 @@ server_design_agrofims <- function(input, output, session, values){
55275527
traitsVals$selectedRows <- list()
55285528
traitsVals$Data <- data.table()
55295529

5530-
dict <- readRDS("/home/obenites/HIDAP_SB_1.0.0/hidap/inst/hidap_agrofims/www/internal_files/crop_measurements_v3.rds")
5530+
dict <- readRDS("/home/obenites/HIDAP_SB_1.0.0/hidap/inst/hidap_agrofims/www/internal_files/crop_measurements_v4.rds")
55315531
dict <- as.data.frame(dict, stringsAsFactors=FALSE)
55325532

55335533
observe({
@@ -8948,6 +8948,62 @@ out
89488948
return(a)
89498949
}
89508950

8951+
# soil_design<- reactive({
8952+
#
8953+
# ### #1 Factor
8954+
# napp1<- NULL
8955+
# if(input$sel1_3 =="Fertilizer product application rate"){
8956+
# # Levels
8957+
# for(i in 1:input$numLevels_tabSoil_1){
8958+
# # # of applications
8959+
# napp1[i] <- input[[paste0("numApps_tabSoil_factor_1_box_",i)]]
8960+
# }
8961+
# }
8962+
#
8963+
# ### #2 Factor
8964+
# napp2<- NULL
8965+
# if(input$sel2_3 =="Fertilizer product application rate"){
8966+
# # Levels
8967+
# for(i in 1:input$numLevels_tabSoil_2){
8968+
# # # of applications
8969+
# napp2[i] <- input[[paste0("numApps_tabSoil_factor_1_box_",i)]]
8970+
# }
8971+
# }
8972+
#
8973+
# napp3<- NULL
8974+
# if(input$sel3_3 =="Fertilizer product application rate"){
8975+
# # Levels
8976+
# for(i in 1:input$numLevels_tabSoil_3){
8977+
# # # of applications
8978+
# napp3[i] <- input[[paste0("numApps_tabSoil_factor_1_box_",i)]]
8979+
# }
8980+
# }
8981+
#
8982+
#
8983+
# napp4<- NULL
8984+
# if(input$sel4_3 =="Fertilizer product application rate"){
8985+
# # Levels
8986+
# for(i in 1:input$numLevels_tabSoil_4){
8987+
# # # of applications
8988+
# napp4[i] <- input[[paste0("numApps_tabSoil_factor_1_box_",i)]]
8989+
# }
8990+
# }
8991+
#
8992+
# napp5<- NULL
8993+
# if(input$sel5_3 =="Fertilizer product application rate"){
8994+
# # Levels
8995+
# for(i in 1:input$numLevels_tabSoil_5){
8996+
# # # of applications
8997+
# napp5[i] <- input[[paste0("numApps_tabSoil_factor_1_box_",i)]]
8998+
# }
8999+
# }
9000+
#
9001+
# print(napp1)
9002+
# print(napp2)
9003+
# print(napp3)
9004+
# print(napp4)
9005+
# print(napp5)
9006+
# })
89519007

89529008

89539009
### Book preview #############################################################

R/ui_design_hdagrofims.R

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -275,31 +275,31 @@ ui_fieldbook_agrofims <- function(type="tab",title="Design Fieldbook",name="phen
275275
shinydashboard::tabItem(
276276
tabName = name,
277277

278-
fluidRow(
279-
#column(6, h1("Experiment description")),
280-
column(12, align = "right", style = "margin-top: 26px;",
281-
actionButton("load_exampleM", "Monocrop"),
282-
actionButton("load_exampleI", "Intercrop")
283-
)
284-
),
285-
286-
fluidRow(
287-
column(2, style = "margin-top: 0px; color: blue;", align = "left", h2(textOutput("idsession"))),
288-
column(2, align = "left", style = "margin-top: 20px;", actionButton('save_inputs', 'Save session', icon("save"))),
289-
column(4),
290-
column(2, align = "right", textInput("loadidsession", "", placeholder = "Experiment ID")),
291-
column(2, align = "right", style = "margin-top: 20px;", actionButton('load_inputs', 'Load session', icon("download")))
292-
),
293-
fluidRow(
294-
column(12, verbatimTextOutput("text"))
295-
),
296-
297-
fluidRow(
298-
box(
299-
title = tagList(shiny::icon("list"), "List session"), status = "primary", solidHeader = TRUE, collapsible = TRUE, width = 12,
300-
"aaa"
301-
)
302-
),
278+
# fluidRow(
279+
# #column(6, h1("Experiment description")),
280+
# column(12, align = "right", style = "margin-top: 26px;",
281+
# actionButton("load_exampleM", "Monocrop"),
282+
# actionButton("load_exampleI", "Intercrop")
283+
# )
284+
# ),
285+
#
286+
# fluidRow(
287+
# column(2, style = "margin-top: 0px; color: blue;", align = "left", h2(textOutput("idsession"))),
288+
# column(2, align = "left", style = "margin-top: 20px;", actionButton('save_inputs', 'Save session', icon("save"))),
289+
# column(4),
290+
# column(2, align = "right", textInput("loadidsession", "", placeholder = "Experiment ID")),
291+
# column(2, align = "right", style = "margin-top: 20px;", actionButton('load_inputs', 'Load session', icon("download")))
292+
# ),
293+
# fluidRow(
294+
# column(12, verbatimTextOutput("text"))
295+
# ),
296+
#
297+
# fluidRow(
298+
# box(
299+
# title = tagList(shiny::icon("list"), "List session"), status = "primary", solidHeader = TRUE, collapsible = TRUE, width = 12,
300+
# "aaa"
301+
# )
302+
# ),
303303

304304
h1("Experiment description"),
305305

0 commit comments

Comments
 (0)