我上傳的功能(apistatus5
)到opencpu店(ropensci_dash
):調用opencpu自定義函數返回錯誤
https://public.opencpu.org/R/user/SChamberlain/ropensci_dash/apistatus5/ascii
我把函數走進一家商店opencpu內我的用戶名(SChamberlain
)之下,但我不斷收到錯誤:
STRING_ELT()只能應用於「特徵向量」,而不是「生」
是否有某種錯誤檢測對於opencpu?代碼工作R內我自己的機器上很好,所以我不知道在哪裏的錯誤嘗試使用運行時:
https://public.opencpu.org/R/user/SChamberlain/ropensci_dash/apistatus5/png
服務器上運行的是什麼版本的httr?最新的CRAN是0.1.1。我使用的是github版本,但是試用了CRAN 0.1.1版本。 'text_content'起作用,但拋出錯誤'text_content()已棄用。使用內容(x,as ='text')' – sckott
它具有CRAN上的當前版本:'httr_0.1.1' – Jeroen
以下是新版本:https://public.opencpu.org/R/user/SChamberlain/ropensci_dash/ apistatus7/ascii它仍然會拋出錯誤'缺少值,其中TRUE/FALSE需要'。 – sckott