I have a two part question on version control.
Looking backwards: If you have old R code and know the date on which the code was run, is there a reasonable way to find the version of R and of packages that were likely current at the time the code was run?
Looking forward: Is there a way to embed code in a script which would make it easy for someone to re-run the code years later with the same R and package versions as used originally.
The context is for a small shop where the people writing code are not professional programmers. So something low cost and easy would be nice. But all advice appreciated.