R Markdown Line Errors

I keep getting these types of errors when I try to use R- Markdown. Even when I remove the code I get the same error for the fac. design code, too. Any suggestions on how to resolve this problem? (I would have copied the error and pasted it but R would not let me).

This has nothing to do with rmarkdown. The error is returned from running the R code because the function Fpower1 on line 20 is not in namespace. It has neither been defined nor loaded with the library function.

Thank you so much! I appreciate your help!