Binomial Test in R
===

I need to do a bernoulli test in R. So im aware that its effectively a binom test in similar format

    binom.test(x, n, p = 0.5,
    alternative = c("two.sided", "less", "greater"),
    conf.level = 0.95)

I have two possible outcomes for my scenatio which are 0 or 1 so i assume the probability to be 0.3 or 0.7. Im just unsure exactly how to code this in R.  Thanks for any help