Police have issued Scotland’s chief medical officer with a warning for visiting her family’s second home in Fife during the coronavirus pandemic, against her own advice that all Scots should stay home.

Police Scotland Chief Constable Iain Livingstone said officers had visited her and “spoke to her about her action, reiterated crucial advice and issued a warning about her future conduct”.

Dr Calderwood has apologised after photos of her and her family near a coastal retreat in Earlsferry were published in The Scottish Sun on Saturday.

Just days earlier, the 51-year-old tweeted a photo of her family at their main residence in Edinburgh as they clapped for the frontline NHS staff working to stop the spread of Covid-19.

Dr Calderwood said her reasons for visiting the house – a drive of more than an hour from Edinburgh – were “not legitimate” and she is “truly sorry for not following advice she gave to others”.

Despite facing calls from politicians to stand down, she said she has spoken to First Minister Nicola Sturgeon and will “continue to focus entirely” on her job of advising ministers over the outbreak.

In a statement, Mr Livingstone said: “Earlier today, local officers visited Dr Catherine Calderwood and spoke to her about her actions, reiterated crucial advice and issued a warning about her future conduct, all of which she accepted.

“The legal instructions on not leaving your home without a reasonable excuse apply to everyone. Social distancing is the key intervention to curtail the spread of coronavirus and it is essential that the instructions are followed to protect each other, take strain from the NHS and save lives.

“Individuals must not make personal exemptions bespoke to their own circumstances.”

Earlier, Dr Calderwood said in a statement: “I wish to apologise unreservedly for the issue reported in the media today.

“While there are reasons for what I did, they do not justify it and they were not legitimate reasons to be out of my home.

“While I and my family followed the guidance on social distancing at all times, I understand that I did not follow the advice I am giving to others, and I am truly sorry for that.

“I know how important this advice is and I do not want my mistake to distract from that.

“I have a job to do as chief medical officer to provide advice to ministers on the path of this virus and to support the medical profession as they work night and day to save lives, and having spoken with the First Minister this morning I will continue to focus entirely on that job.”

The Scottish Liberal Democrats and Scottish Labour have called for Dr Calderwood to resign.

In a joint statement, Scottish Liberal Democrat leader Willie Rennie and Wendy Chamberlain, the MSP and MP respectively for the area where Dr Calderwood has her second home, said: “If we are going to get through this pandemic we need medical leaders who everyone can follow. It is with great regret that we say that the chief medical officer will need to go.”

Scottish Labour’s health spokeswoman Monica Lennon also called for Dr Calderwood to stand down, while Scottish Conservative leader Jackson Carlaw said her position is “untenable” and the Scottish Greens said she can “no longer credibly front” the public health campaign.

Scotland’s Constitution Secretary Mike Russell said there was no doubt Dr Calderwood’s visit – which the Scottish Government confirmed was an overnight stay to “check on a family home” – was “ill-advised”.

He said she would be “answerable” for her decision when she appears at the daily coronavirus briefing with Ms Sturgeon later.

Mr Russell added: “I’m saying to everybody… do not go out except in the very exceptional circumstances that are listed, think about these things and remember by breaking them you are risking lives.”

Last month, the Scottish Government issued a travel warning criticising the “irresponsible behaviour” of people with second homes and campervans travelling to the Highlands in a bid to isolate.