R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
library(SASmarkdown)
## Warning: package 'SASmarkdown' was built under R version 4.0.3
## sas, saslog, sashtml, and sashtmllog engines
## are now ready to use.
proc means data=sashelp.class;
run;
## The MEANS Procedure
##
## Variable N Mean Std Dev Minimum Maximum
## ------------------------------------------------------------------------------
## Age 19 13.3157895 1.4926722 11.0000000 16.0000000
## Height 19 62.3368421 5.1270752 51.3000000 72.0000000
## Weight 19 100.0263158 22.7739335 50.5000000 150.0000000
## ------------------------------------------------------------------------------
set engine back to R and test R code
plot(cars)

reference:
need to put inside {}: sas engine="sas", engine.path="C:\Program Files\SASHome\SASFoundation\9.4\sas.exe"
need to put inside {}:r, engine="sashtml", engine.path="C:\Program Files\SASHome\SASFoundation\9.4\sas.exe", error=T
need to put inside {}: r, engine="saslog", engine.path="C:\Program Files\SASHome\SASFoundation\9.4\sas.exe", error=T
need to put inside{}: r, engine="R"