Marco Dinatsoli
Marco Dinatsoli

Reputation: 10580

a what is the wrong in the description function of a package

I want to build a package in R using R studio

I got this error when pressing on build source package

==> R CMD build CLASS_Projectcompany

* checking for file 'CLASS_Projectcompany/DESCRIPTION' ... OK
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
* preparing 'CLASS_Projectcompany':
* checking DESCRIPTION meta-information ... ERROR
Malformed package name

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.

The content of the DESCRIPTION file is:

Package: CLASS_Projectcompany
Type: Package
Title: Class Projectcompany
Version: 1.0
Date: 2015-05-23
Author: Marco Deneenii [aut, cre]
Maintainer: Marco Deneenii <[email protected]>
Description: Class Project Company.
License: GPL-2

may you help please ?

Update

After i remove the _ from the package entry, i got this error:

==> R CMD INSTALL --build --preclean ClassProjectcompany

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
* installing to library '/Library/Frameworks/R.framework/Versions/3.2/Resources/library'
* installing *source* package 'ClassProjectcompany' ...
** R
** preparing package for lazy loading
Warning in file(file, "rt") :
  cannot open file '��.S�': No such file or directory
Error in file(file, "rt") : cannot open the connection
Error : unable to load R code in package 'ClassProjectcompany'
ERROR: lazy loading failed for package 'ClassProjectcompany'
* removing '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ClassProjectcompany'

Exited with status 1.

Upvotes: -1

Views: 4152

Answers (1)

Dirk is no longer here
Dirk is no longer here

Reputation: 368429

It tells you in no uncertain terms

Malformed package name

so I would start with the line

 Package: CLASS_Projectcompany

and actually check that underscores are permitted. They may not be.

Upvotes: 5

Related Questions