Later on Tuesday, Swinney will stand as first minister in a poll of MSPs.

All six parties in the Scottish Parliament have nominated their leaders to serve in the post, but Swinney’s success is virtually assured after the SNP’s emphatic victory in the 7 May election.

The SNP won 58 seats, with its nearest rivals, Labour and Reform UK, on 17 each.

That means the opposition parties would need to agree on an alternative candidate to defeat Swinney, a highly unlikely prospect.

If he is elected by MSPs – or strictly speaking selected as their nominee for first minister – Swinney’s appointment will be confirmed by royal warrant before he is sworn in at the Court of Session in Edinburgh on Wednesday.

The new first minister is then expected to begin the process of appointing his cabinet.

In the election, the SNP fell seven seats short of a majority at Holyrood where the electoral system means minority or coalition government is the norm.

This means he will need support from other parties to pass legislation.

Swinney has said he is happy to deal with all opposition parties except Reform UK, led in Scotland by former Conservative peer Malcolm Offord.

He said Nigel Farage’s party had “completely different values” to his, a position Lord Offord called “arrogant, petty and deeply undemocratic.”