简体   繁体   中英

Knit PDF produced PDF different than Source in RStudio

When I knit PDF on RStudio. It DOES NOT match what is in my Rmd file after source of the .Rmd . This has happened every time I tried to Knit PDF . How can I get example what is in my .Rmd into Knit PDF ? I've tried clearing cache and restarting RStudio but this inconsistency is still happening...

You need to set.seed() at instance where you are generating random data if you are generating any.

  1. Try to clean your environment and rerun and assess results

  2. Try to set.seed at the top of the code and rerun.

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