In 1976, statisticians at Bell Labs began to develop S as a language for statistical programming at Bell Labs. and in 1991 development continued as the open-source project R. R is now a mature language that implements many new and all standard statistical tests. The \chi^2 test dates to 1900. The question should be reframed not as why R results differ from an unnamed book and an unnamed calculator but why those sources differ from R.
One possibility is that the unnamed sources are run without the Yates continuity correction. Try
The textbook also uses R. My main problem is identifying what I may have been doing wrong, since the answer I get using R is different.
chisq.test(x,correct=False)
Error in chisq.test(x, correct = False) : object 'False' not found
(Xsq=chisq.test(x,correct=False))
Error in chisq.test(x, correct = False) : object 'False' not found