Hi carolcmc,
The working arrangements of an individual who works for a UK company are entirely a matter for the employer/employee in question.
HMRC is solely concerned with ensuring that the correct amount of tax is paid.
If you do work remotely in Brazil for a short period of time, you are likely to remain tax resident in the UK and your employer would continue to deduct PAYE tax from your earnings.
PAYE81645 - PAYE operation: international employments: issuing form P85
Thank you.