Sometimes, one session of code is so long, it becomes difficult to run all these commands from top to bottom again and again. In addition, sometimes any error in long session codes in any lines becomes difficult. Therefore, R gives you the opportunity to save the session. The session can be saved using the following commands:
save(list = ls(all=TRUE), file= "D:/main_folder//session")
The save session can be retrieve in the new script by using the following commands.
load(file= "D:/main_folder/Data/mango_research//session")
No comments:
Post a Comment