Rpy2 on streamlit

im using rpy2 library and it force closed my streamlit app. how do i resolve it. thanks

im using this line of code and still not working
import os
os.environ[β€˜R_HOME’] = β€˜C:\Program Files\R\R-4.3.2’

im trying to import β€˜sn’ library for my streamlit app too
im using windows btw
please can you help me