You can use the ADF test from the "tseries" package.

Ex = adf.test(MyDataSeries)
Ex$statistic is the Dickey-Fuller statistic, Ex$parameter is the lag order, and Ex$p.value is the p-value.