'R: is it possible to return the last value from a `source`?

I put some value in a file e.g. code.R and inside it I put

1

when I source(code.R) It doesn't return the value inside?

Is there a way to source a value and have that source function return the value in the code?

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source