Do not display “NULL” functions in Rmarkdown output

Please ask your questions about R Markdown here.

Hello;
The results with the code you suggested below do not work. So, I can't download the word file when I run the codes. I want the code to run as ist NULL ın if the conditions are provided. But I don't want this istem NULL asında output to appear on the word page. I'd appreciate it if you could help me with that.


title: "Untitled"

author: "Biostat44"

date: "19 Nisan 2019"

output: html_document



l = NROW(iris$Sepal.Length)





if(l <= 50){

  shapiro.test(x =iris$Sepal.Length )

}



if(l > 50){

  ks.test(x = iris$Sepal.Length,"pnorm")

}

I don't really follow this question. There seems to be a pretty big disconnect between the issues you write about and the rmarkdown code provided.


I would really encourage you to review the following guide, FAQ: Tips for writing R-related questions.
For example, the guide emphasizes asking coding questions with a reprex. You may have noticed that many people here request issues come in the form of a minimal reprex, that's because asking questions this way saves answerers a lot of time helping you get your issue resolved.

This is the exact same question as in the repository

Is this a follow up ? is there something missing ?

Or is this a duplicate ?