i am an absolute beginner and do not know the first thing about r.
There are a number of books and tutorials available. A very highly regarded one is https://r4ds.had.co.nz . I'd suggest reading a bit, playing around with a few examples and then asking questions here as you go.
i was hoping someone would perhpas show me a way to learn how to do these tests in r.
Well, with a bit more detail of the problem someone might be able to help but you really need to know a bit about R to ask the question and understand the answer.
Once you know o bit about R, try googling " R Statistics mincer zarnowitz regression test" see what you understand/don't understand and come back for more specific help.