Hi,
The rule is that the PR should be in Canada for the entire process. Citizen can leave the country or can sponsor from outside. From what I have read a lot, small vacations ahould be ok about 2 weeks. But staying outsode the country for 6 months definitely raises questions about the sponsor...