Second the suggestion of Bivand's textbook to familiarize you with spatial data handling in R.
Luc Anselin's workbooks are very good, but @Richard Smith I think his resources have all been migrated to ASU's site: http://geodacenter.asu.edu/system/files/rex1.pdf
@ Zhang Shije. Spatial analysis is easier in Geoda however only spatial and error can be handled. STATA another nice software but R is invoke now. I also recommend Luc Anselin wookbook and this video https://www.youtube.com/watch?v=NLyjdmyokio
This is a recently published interactive book with exercises "Introduction to Econometrics with R" by Hanck et al.: https://www.econometrics-with-r.org/index.html