简体   繁体   中英

How do I change R's assignment operator to arrow and not equal size

Today during a RStudio session, I accidentally changed the assignment operator in R from arrow to the equal sign. I have no idea how this happened, and now Alt - results in the equal sign all the time. I am on a Mac and my R version is 4.1.1. I am using RMarkdown and only had dplyr and lsa packages installed in this session.

How can I change it back to the arrow operator?

I tried closing and re-opening the file and it doesn't help. Interestingly, the console and R scripts are not affected - this is only happening to RMarkdown

Turns out I had issues with Rmarkdown not seeing the chunks as code but text instead - retyping the block quotes fixed the problem!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM