简体   繁体   中英

Description file exisits but not correct for a nec R package

Im creating my first R package and the code works pretty well. I have a probem with the DESCRIPTION file it generates this error while exporting the package so it cant be exported

checking for file 'C:\Users\Documents\mypackage/DESCRIPTION' ... (427ms)
   EXISTS but not correct format
Error in (function (command = NULL, args = character(), error_on_status = TRUE,  : 
 System command error
Calls: <Anonymous> ... with_envvar -> force -> do.call -> <Anonymous> -> throw
Execution halted

this is the format of my description

Package: Mypackage
Type: Package
Title: Simple Tools for Extracting Text from PDF
Version: 0.1.0
Author: Azza Abidi
Maintainer: The package maintainer <aazzaabidi@gmail.com>
Description: ( a pargrapf description)

License:  GPL-3
Encoding: UTF-8
LazyData: true
Imports: pdftools, tm, NLP, qdapRegex

It might be a bit silly for me to share, but I do not see a "Depends" in there. That might be a possible issue.

Format

Package: mypackage
Title: What The Package Does (one line, title case required)
Version: 0.1
Authors@R: person("First", "Last", email = "first.last@example.com",
                  role = c("aut", "cre"))
Description: What the package does (one paragraph)
Depends: R (>= 3.1.0)
License: What license is it under?
LazyData: true

Taken from here http://r-pkgs.had.co.nz/description.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM