Thank you, i did as you suggested and it worked.
I was trying to knit my document but i keep getting error messages:
Error in contrib.url(repos, "source") :
trying to use CRAN without setting a mirror
Calls: ... eval_with_user_handlers -> eval -> eval -> install.packages -> contrib.url
Execution halted
Please do you have a solution for the above? Thank you