title: Unused arguments for BernBeta.R?
body: <p>I am in a Bayesian Methods PhD course, and trying to run some BernBeta code in RStudio. (Not a regular R user!) I downloaded and installed BernBeta.R and DBDA2E-utilities.R, and they appear to be working. However, when I run any BernBeta command, R returns the error &quot;unused arguments.&quot; This is happening to myself and another student, but our professor was able to run our code successfully, so there must be some step or install we're missing. I've checked the source and that does not appear to be the issue, which was our professor's only suggestion for resolving the error. Please send me any advice on what has gone wrong here!</p>
  <p>This is the code I am trying to run:</p>
  <p>source(&quot;C:/Users/megka/Documents/R files/DBDA2E-utilities.R&quot;)
  source(&quot;C:/Users/megka/Documents/R files/BernBeta.R&quot;)</p>
  <pre><code>a = 4
  b=4
  Prior = c(a,b)
  N=1 
  z=1
  Data = c(rep(0,N-z), rep(1,z))
  openGraph(width=5, height=7)
  posterior=BernBeta(priorBetaAB=Prior, Data=Data, plotType= &quot;Bars&quot;, showCentTend=&quot;Mode&quot;)
  BernBeta(priorBetaAB=Prior, Data=Data, plotType= &quot;Bars&quot;, showCentTend=&quot;Mode&quot;)
  </code></pre>
  <p>And this is an example of the error I am getting:
  Error in BernBeta(priorBetaAB = Prior, Data = Data, plotType = &quot;Bars&quot;,  :
  unused arguments (priorBetaAB = Prior, Data = Data, plotType = &quot;Bars&quot;, showCentTend = &quot;Mode&quot;)</p>
  <p>Thank you!</p>