R語言(reticulate)調用 Python MQTT套件
markdown    R是我最常用的程式語言然而並沒有MQTT的相關套件可以使用 所以使用reticulate調用Python的paho-mqtt套件 來達成一些R語言做不到的東西 首先先安裝paho-mqtt的套件資料  `pip3 install paho-mqtt` 在Rstudio中可以直接調用Terminal編輯器 執行Python的標準庫管理器(pip3)安裝套件超方便     安裝與載入reticulate套件 這套件可以很簡單調用Python相關資源 包括在Rmackdown中就是使用reticulate套件執行python程式區的程式碼  ```r= install.packages("reticulate") library(reticulate) ``` ### 載入python paho-mqtt套件 ```r= mqtt  參考資料  https://rstudio.github.io/reticulate/ https://github.com/eclipse/paho.mqtt.python  🌟全文可以至下方連結觀看或是補充   全文分享至  https://www.facebook.com/LHB0222/  https://www.instagram.com/ahb0222/  有疑問想討論的都歡迎於下方留言  喜歡的幫我分享給所有的朋友 \o/  有所錯誤歡迎指教  # [:page_with_curl: 全部文章列表](https://hackmd.io/@LHB-0222/AllWritings)