Hi there

I can compile your example without any tweaks, hence could not reproduce any error.

cheers
Heinrich

———

R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)

[R.app GUI 1.78 (8075) x86_64-apple-darwin17.0]

> svg("/Users/hp/filename.svg");
> plot(rnorm(200));
> dev.off()
null device 
          1 

———

% !TEX program = lmtx

\starttext
  \externalfigure[/Users/hp/filename.svg][conversion=mp]
\stoptext

———