R错误:输入格式未知 [英] R Error: unknown input format

查看:268
本文介绍了R错误:输入格式未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NEI <- readRDS(unz(tf, filename = "summarySCC_PM25.rds", open = "", encoding = getOption("encoding")))

变量tf 是一个临时文件,具有非常特定的位置,保存在硬盘驱动器上.据我了解, unz()是:

Variable tf is a temporary file with a very specific location saved on the hard drive. It is my understanding that the format for unz() is:

unz(description, filename, open = "", encoding = getOption("encoding"))

在阅读文档时,我解释说我对代码的应用是正确的:

As I read the documentation, I am interpreting that my application of the code is accurate as that:

  1. 描述是一个特定的zip文件目标,在 var tf 中以c://...//345du.zip
  2. 的形式输出
  3. 文件名是summarySCC_PM25.rds,这是要从tf中提取
  4. 的文件
  5. open已在var中建立,所以黑色应该没问题
  6. 编码可标记语言类型.
  1. description is a specific zip file destination, which outputs in var tf as c://...//345du.zip
  2. filename is summarySCC_PM25.rds, which is the file to be extracted from tf
  3. open is already established in the var so black should be fine
  4. encoding labels the language type.

在上述代码的上下文中,我从R 3.1.1收到错误:未知的输入格式".我需要弄清可能发生的情况,因为我将代码解释为与以下代码相同:

Within the context of the code above, I receive "Error: unknown input format" from R 3.1.1. I need clarification on what might be happening as that I interpret my code to be the same as:

NEI <- readRDS("summarySCC_PM25.rds")

我误解了吗?

推荐答案

由于临时文件是移动目标,请避免使用unz()并使用unzip(withanindex)

Avoid unz() and use unzip(withanindex) since the temp file is a moving target

这篇关于R错误:输入格式未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆