If you are staying outside of Canada temporarily then you are still resident of Canada for tax purposes because you are not severing your ties with Canada (you will have probably home, family ties, accounts, and intention to return to Canada). As you will be considered resident for tax purposes...