Error: 5:1: unexpected input

Dear all,

I got an annoying issue, I upgraded R to 4.1 these days, but I found an error like this. no matter I installed x86 or arm R. But when I install back to 4.0, this error "5:1: unexpected input" was gone.

At first, I did not notice, until I would like to install packages from biomanger or devtools, but none of these packages can be installed, then I realized may be due this unknown error.
It has been driving me crazy for really long time, hope you guys can help me out!
Thanks a lot in advance.!!!!!

R version 4.1.3 (2022-03-10) -- "One Push-Up"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Error: 5:1: unexpected input
4:
5:
^

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.