Skip to content

Commit eaf26d9

Browse files
committed
Fixed bug in shinyapps.io implementation of need() on population size
1 parent e8c179d commit eaf26d9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

driftR.Rproj

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Version: 1.0
2+
3+
RestoreWorkspace: Default
4+
SaveWorkspace: Default
5+
AlwaysSaveHistory: Default
6+
7+
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
10+
Encoding: UTF-8
11+
12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX

server.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ shinyServer(function(input,output,session){
1313
need((input$nPop==length(p())|length(p())==1),"number of populations must equal number of starting allele frequencies."),
1414
need(input$gen<5001,"Please select < 5000 generations."),
1515
need(input$nPop<101,"Please select < 100 populations"),
16-
need(input$n<1000001,"Please select n < 1,000,000"),
16+
#need(input$n<1000001,"Please select n < 1,000,000"),
1717
need(input$plotStats!="","Select a variable to plot.")
1818
)
1919
tmp <- runPopSim(gen=input$gen,p=p(),Waa=input$Waa,Wab=input$Wab,Wbb=input$Wbb,n=n(),

0 commit comments

Comments
 (0)