Refer to the solution to the Chinese input problem of RStudio1.1.447 under Ubuntu16.4
:
https://blog.csdn.net/matteoshenl/article/details/78603528
RStudio 1.0.153 and above
wget http: // ikuya.info/tmp/fcitx-qt5-rstudio-qt542.tar.gz tar xf fcitx-qt5-rstudio- qt542.tar.gz sudo apt install ./fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb
Then restart rstudio