This package conducts the canonical correlation analysis for the longitudinal datasets.
The development version from GitHub with:
# install.packages("devtools") devtools::install_github("seonjoo/lcca")
lcca(x,y)