I am used to Python, and to a syntax like
import mypackage
import myotherpackage as mop
x = mypackage.calc(y)
z = mop.calc(y)
Am I right in understanding that R, like Matlab, does not have a proper namespace? I am a beginner in R.
How do you address conflict names?
What if two packages have the same function names?
If in R you do
library(mylib)
library(my_second_lib)
and both libraries have the function calc(), does calling calc() mean calling the function of the most recently loaded package?
How do you test two versions of a package? Eg if you want to test the output of your new package vs the output of the old one, and they both have the same function names?