Prior to the steps below, enter the data as appropriate for the analyses (described elsewhere). As always, the following commands should be typed directly in the R console window.
Get the sample size, mean, and standard deviation for the variable.
c(length(Outcome), mean(Outcome), sd(Outcome))
Test the mean difference for statistical significance and get its confidence interval.
t.test(Outcome,mu=7)
Also, you can change the width of the confidence interval if desired.
t.test(Outcome,mu=7,conf.level=.99)