The covariate-adjusted response-adaptive randomisation (CARA) design combines the advantages of response-adaptive randomisation and covariate-adaptive randomisation, and improves the efficiency and reliability of clinical trials by combining analytical results and covariates and dynamically adjusting the allocation of subsequent patients. This paper describes in detail several methods of CARA design and their example applications of various methods, including the dominant confidence method, the urn model, the generalized linear model, and the Atkinson model, and provides the corresponding R codes in anticipation of a wider application of the provided R codes in clinical trials.