I have a source file with oxygen-style comments (and description & licence 
files), and I’m trying to build a package. oxygen & devtools seem to work, and 
the tarball exists, but install.packages balks. Does anyone know what’s 
happening?

Regards,
Jorgen Harmse.


> roxygenise(package.dir,clean=TRUE)

Setting `RoxygenNote` to "7.3.1"

✖ roxygen2 requires "Encoding: UTF-8"

ℹ Current encoding is NA

ℹ Loading jhBase

Warning: ── Conflicts 
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 jhBase conflicts

──

✖ `andNotNA` masks `jhBase::andNotNA()`.

✖ `array.named` masks `jhBase::array.named()`.

✖ `arrayInd.inv` masks `jhBase::arrayInd.inv()`.

  … and more.

ℹ Did you accidentally source a file rather than using `load_all()`?

  Run `rm(list = c("andNotNA", "array.named", "arrayInd.inv", 
"as.POSIXct_orig", "build.package", "colon", "file.info", "file.path", 
"files.removeDup", "fprintf", "grepi", "grepiv", "grepv", "grepvi", "ifelses", 
"index", "load.env", "load.list", "matrix.sq", "merges", "mm", "orNA", 
"pattern.NA", "plots", "printf",

  "save.env", "subs", "symmDiff", "vector.named", "width"))` to remove the 
conflicts.

Writing NAMESPACE

Writing printf.Rd

Writing width.Rd

Writing pattern.NA.Rd

Writing ddply.ns.Rd

Writing as.POSIXct_orig.Rd

Writing mm.Rd

Writing orNA.Rd

Writing merges.Rd

Writing index.Rd

Writing save.env.Rd

Writing build.package.Rd

Writing plots.Rd

Writing ifelses.Rd

Writing subs.Rd

Writing array.named.Rd

Writing grepv.Rd

Writing symmDiff.Rd

Writing file.info.Rd

Writing file.path.Rd

Writing files.removeDup.Rd

Writing arrayInd.inv.Rd

> tar <- devtools::build(package.dir)

── R CMD build 
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

✔  checking for file 
‘/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase/DESCRIPTION’ ...

─  preparing ‘jhBase’:

✔  checking DESCRIPTION meta-information ...

─  checking for LF line-endings in source and make files and shell scripts

─  checking for empty or unneeded directories

─  building ‘jhBase_1.0.1.tar.gz’



> file.info(tar)

                                                                          size 
isdir mode               mtime               ctime               atime uid gid  
 uname grname

/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz 14030 
FALSE  644 2024-03-20 10:49:10 2024-03-20 10:49:10 2024-03-20 10:49:10 503  20 
jharmse  staff

> install.packages(tar,type='source',repos=NULL)

Error in library(jhBase) : there is no package called ‘jhBase’

Execution halted

Warning in install.packages(tar, type = "source", repos = NULL) :

  installation of package 
‘/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz’ had 
non-zero exit status


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to