0

so I was having a problem with my rmd file so I had to switch my work from rmd to a brand new r script and now it's not showing me the option to knit to html anymore.

I've also included photos of what the picture of what the top of my r file now looks like and what the top of my rmd file looks like

https://imgur.com/a/8JRmkKP

Phil
  • 7,287
  • 3
  • 36
  • 66
  • It's easier to help you if you include a simple reproducible example: with sample input and desired output that can be used to test and verify possible solutions. – TarJae Jul 09 '23 at 11:26
  • 1
    Can you make a new file that’s an rmd and paste your script into it? – Jon Spring Jul 09 '23 at 11:53

1 Answers1

1

Make sure the file is saved and in the current working directory and try running

knitr::spin("your-r-script-file.R")

in R console, you should then have a new HTML file next to your R script. knitr::spin

margusl
  • 7,804
  • 2
  • 16
  • 20