This release is the R project containing code and data used in the paper: Kun Guo, Petr Pyšek, Milan Chytrý, Jan Divíšek, Martina Sychrová, Zdeňka Lososová, Mark van Kleunen, Simon Pierce, Wen-Yong Guo. Stage dependence of Elton's biotic resistance hypothesis of biological invasions. Nature Plants. Accepted