Besides FKF, which has been mentioned in one of the answers above, you have several other packages in R which do Kalman filtering, with different strengths and functionality. You might want to look at packages dlm, KFAS, MARSS, astsa, KFKSDS, among others.