当前位置:网站首页>随笔8:错误解决Error in readPNG(paste(location,“/“,pattern.type[i],“.png“,sep = ““)):unable to open C:/
随笔8:错误解决Error in readPNG(paste(location,“/“,pattern.type[i],“.png“,sep = ““)):unable to open C:/
2022-04-23 00:30:00 【女神の戦士】
使用patternplot包绘图时,以下代码老是报错:
library(patternplot)
library(png)
library(ggplot2)
test <- data.frame(x = letters[1:11],y = 1:11)
pattern.type <- c('blank','bricks','vdashes','hdashes','crosshatch','grid','hlines','nelines','nwlines','vlines','waves')
dev.new()
patternbar(test,
factor(test$x),
test$y,
pattern.type = pattern.type)
错误提示如下:
Error in readPNG(paste(location,"/",pattern.type[i],".png",sep = "")):
unable to open C:/User/
/AppData/Local/Temp/RtmpUZ02tl/blank.png
我这边的原因是买新电脑时用了中文账户名,现在也没法恢复,对此只能修改临时文件存储位置。
解决办法如下:
环境变量里设置新的Temp临时文件存放位置为D盘,就规避了C盘中文用户名造成的问题。

版权声明
本文为[女神の戦士]所创,转载请带上原文链接,感谢
https://blog.csdn.net/ForvaluesMyself/article/details/124230962
边栏推荐
- 【AI视野·今日Sound 声学论文速览 第四期】Thu, 21 Apr 2022
- (transfer) Aspose Introduction to DOM tree structure, node class inheritance relationship and description of words Programming Guide
- 我和TiDB的故事 | 毫无准备地不期而遇,却想说与你相遇好幸运
- while (n-- > 0) 的用法
- (转)通过RDP隧道绕过网络限制
- Node + mongoose paging effect
- Addition, deletion, modification and query of MySQL table (Advanced)
- Simple use of Excel if function
- [image classification] - come on, let's do this bowl of efficientnet combat (pytoch)
- 接口文档生成工具ApiPost 绝了
猜你喜欢

Differences of lake water color, water environment and hydrological remote sensing

Solution for error reporting of biff el6631 and Siemens communication PROFINET

C#/.Net 使用QuestPDF操作生成PDF更快更高效!

Beifu el5101 module obtains the feedback position of the grating ruler and binds it to the NC axis configuration

Progrès de la recherche sur la télédétection des paramètres phénologiques de la végétation

Misunderstanding of indexlookup

R language data analysis from entry to advanced: (9) data table connection of data cleaning skills

ArcGIS 城市生活区用地适宜性评价(一)

ArcMAP 使用绘图工具添加注记

Bypass network restrictions through RDP tunnel
随机推荐
JS - process and split the data of consecutive months
EL2521模块控制步进驱动器
(转)通过RDP隧道绕过网络限制
A tikv hard disk usage problem caused by GC not working caused by ticdc exception
cluster_ ACC calculation
(transfer) Aspose Documentbuilder II of words Programming Guide
ArcGIS 城市生活区用地适宜性评价(二)
三菱FX5U配置MR-JE-C伺服驱动器 IEBasic设定
Simple use of Excel if function
程序员怎么找工作?程序员找工作越来越难怎么办?
33岁,工作十年被裁员,所谓经验根本不值钱
MySQL built-in function
Error runtimeerror when MySQL runs workbench
一场由TiCDC异常引发的GC不干活导致的Tikv硬盘使用问题
MySQL -- data type
Componentwillunmount uninstall components
Nodejs + Express login authentication and registration
USPS dataset_ Kmeans Usage Summary
【图像分类】 一文读懂AlexNet
(transfer) how winscp (SSH FTP client) generates the key to log in Linu