Scotland experienced slightly better sales growth than Great Britain as a whole in the three months immediately after the Brexit vote.
In the period July to September, official figures show that the volume of sales rose by 2.1% in Scotland compared with 1.8% in Great Britain.
The value of sales also increased by 2.1%, slightly above the 2% growth recorded in the UK.
Euan Murray, of Barclays Corporate Banking in Scotland, said the third quarter of 2016 had been "a broadly positive period in the retail space with food and non-food categories both feeling the benefits".
He added: "We will be watching the sector with interest as the inevitable post-Brexit price rises from retailers gradually trickle down to the consumer."
The volume of retail sales in Scotland in the period July to September was 4.9% higher than the same three months of 2015. Great Britain as a whole achieved growth of 5.4% over the year.
Scotland also lagged behind in growth in sales value over the year, with an increase of 3.2% compared with the 3.7% rise recorded across Great Britain.
Economy Secretary Keith Brown said: "We welcome today's figures which, coupled with the modest economic growth we've seen since the start of the year, show the continued resilience of the retail sector and consumer spending in the immediate aftermath of the EU referendum.
"However, clearly Brexit has not happened yet - and the ongoing complete lack of clarity from the UK Government about what kind of relationship they are seeking with the EU is creating tremendous uncertainty.
"We are continuing to invest in businesses to help protect them from any Brexit shock and uncertainty as well as promoting Scotland's position as a place of international trade and investment, but clearly we must be prepared for the challenging circumstances that lie ahead."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here