I have re-run with the same seed but cannot produce same results in R studio.
Will set.seed() lose track when calling different user packages, R6 classes and methods?
Have you come across similar situation and how to fix it?
Thanks a lot
closeAllConnections()
rm(list=ls())
gc()
set.seed(123456)
require(PackageA) #user defined package
fileName <- "N:/Risk Management/abc.json";
configuration <- JsonConfigurationReader$readConfiguration(fileName); #R6 class and method in PackageA
instance <- someClass$new(configuration); #R6 class and method in PackageA
instance$execute() #will produce some random numbers in this method
closeAllConnections()
rm(list=ls())
gc()