I read the page [Trilateration algorithm for n amount of points](https://gis.stackexchange.com/questions/40660/trilateration-algorithm-for-n-amount-of-points) and I have to do similar kind of trilateration in R. 

I am not that expert in R, can anyone help, if there is similar function/package like mathematica in R?