I'm a Canadian resident, who has spent over 5 years driving around the world, never staying in a single country more than a month or three. All those were just tourist visas, so it would have been illegal for me to live and work there.
During all of that, I had to pay income tax in Canada, even though I went >2 years then almost 3 years without setting foot in the country.