Autocomplete in text files

First time using Rmarkdown.
It seems as though you cannot use markdown on an Rscript.. it must first be converted to an Rmarkdown file. However, for some reason, some of the nifty features of Rstudio, such as autocomlete of commands and functions, is disabled... very unsettling for me. Is there a way to enable autocomplete for the text file?

If I am in an R Markdown file and I start a new code chunk with
I do get the autocomplete feature. For example, if the tidyr library is loaded and I type the three letters piv I get suggestions for functions like pivot_longer(). Are you typing within a code chunk?

Yes that fixes the problem...

This topic was automatically closed 7 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.