diff --git a/samples/client/petstore/R/build_and_test.bash b/samples/client/petstore/R/build_and_test.bash
index 0e7828ec879ff178d682d84e0056948caae71c22..21baf21970d64c7b67b40abcd9aa950cee32e83a 100644
--- a/samples/client/petstore/R/build_and_test.bash
+++ b/samples/client/petstore/R/build_and_test.bash
@@ -19,6 +19,7 @@ Rscript -e "install.packages('rlang', repos='$REPO', lib='$R_LIBS_USER')"
 Rscript -e "install.packages('rjson', repos='$REPO', lib='$R_LIBS_USER')"
 Rscript -e "install.packages('devtools', repos='$REPO', lib='$R_LIBS_USER')"
 Rscript -e "install.packages('stringr', repos='$REPO', lib='$R_LIBS_USER')"
+Rscript -e "install.packages('lifecycle', repos='$REPO', lib='$R_LIBS_USER')"
 
 rm petstore_1.0.0.tar.gz || true