簡體   English   中英

R中的Osmar包“文件錯誤(con,“r”):無法打開連接”

[英]Osmar package in R “Error in file(con, ”r“) : cannot open the connection”

我正在嘗試在我的 Windows 10、R 3.4.2 上運行 osmar 包,並且已經正確安裝了 osmosis。 但是,當我嘗試運行代碼時:

>library("osmar")
>
>src <- osmsource_osmosis(file = "c:/users/ben_c/Documents/FYP/FYP_NL_Map/muenchen.osm", osmosis = "osmosis")
>
>
>nl_bbox <- center_bbox(11.575278, 48.137222, 3000, 3000)
>
>nl <- get_osm(nl_bbox, src)
>
>plot(nl)

滲透運行后,我收到警告:

>Error in file(con, "r") : cannot open the connection
>In addition: Warning message:
>In file(con, "r") :
>  cannot open file 
>'C:\Users\ben_c\AppData\Local\Temp\Rtmp8YYPkZ\file1b182fca7802': No such file or directory

運行演示時,我也遇到同樣的錯誤:

>demo("navigator")

我對 R 比較陌生,所以非常感謝任何幫助。

提前致謝,

我有非常相似的錯誤。 我可以通過以管理員身份運行 R(在我的例子中是 RStudio)來解決這個問題。

我認為問題是無法創建臨時文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM