Git Product home page Git Product logo

Comments (7)

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Please install pkgKitten (also on CRAN, of course) and try again.

I just demo'ed this in a workshop last week.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Below is a log from my box:

R> setwd("/tmp")
R> library("RcppArmadillo")
R> RcppArmadillo.package.skeleton("foobar")

Calling kitten to create basic package.
Creating directories ...
Creating DESCRIPTION ...
Creating NAMESPACE ...
Creating Read-and-delete-me ...
Saving functions and data ...
Making help files ...
Done.
Further steps are described in './foobar/Read-and-delete-me'.

Adding pkgKitten overrides.
Deleted 'Read-and-delete-me'.
Done.

Consider reading the documentation for all the packaging details.
A good start is the 'Writing R Extensions' manual.

And run 'R CMD check'. Run it frequently. And think of those kittens.


Adding RcppArmadillo settings
 >> added Imports: Rcpp
 >> added LinkingTo: Rcpp, RcppArmadillo
 >> added useDynLib and importFrom directives to NAMESPACE
 >> added Makevars file with Rcpp settings
 >> added Makevars.win file with RcppArmadillo settings
 >> added example src file using armadillo classes
 >> added example Rd file for using armadillo classes
 >> invoked Rcpp::compileAttributes to create wrappers
R> system("R CMD build foobar")
* checking for filefoobar/DESCRIPTION... OK
* preparingfoobar:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* buildingfoobar_1.0.tar.gzR> system("R CMD check foobar_1.0.tar.gz")
* using log directory/tmp/foobar.Rcheck* using R version 3.3.0 (2016-05-03)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* checking for filefoobar/DESCRIPTION... OK
* checking extension type ... Package
* this is packagefoobarversion1.0* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether packagefoobarcan be installed ... [14s/11s] OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking compilation flags in Makevars ... OK
* checking for GNU extensions in Makefiles ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking compiled code ... OK
* checking examples ... OK
* checking PDF version of manual ... OK
* DONE

Status: OK

R> 

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

The other error, of course, may just be that you have no suitable LaTeX environment...

from rcpparmadillo.

cmoang avatar cmoang commented on June 12, 2024

I confirm installing pkgKitten fixed the first problem.

The second was a local problem. In my Arch Linux I had to run

sudo mkdir -p /usr/share/R/texmf/tex/latex/
sudo cp /usr/share/texmf/tex/latex/Rd.sty /usr/share/R/texmf/tex/latex/

Now the package is installable. Thank you!

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Thanks for the feedback. I don't want to force pkgKitten in on people by maybe printing a message 'you are running skeleton, consider installing pkgKitten' may make sense.

As for Arch, can't comment. My Debian package places the required files in the right places. Isn't / Wasn't Arch a derivative?

from rcpparmadillo.

t-pollington avatar t-pollington commented on June 12, 2024

Also happened to me on Linux Mint 19. Unfortunately the pkgKitten and Rd.sty copy didn't work for me (ps my path was a bit different /usr/share/texmf/tex/latex/R/tex/latex). As a brute force fix I removed these lines from man/mypackagename-package.Rd and the Error: unexpected symbol in "~~ simple examples" disappeared on running Check:

\examples{
~~ simple examples of the most important functions ~~
}

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

And again the ~~ simple examples of the most important functions ~~ stuff comes from (base R
's) package.skeleton(). not us. Now if you say that copy did not work maybe we can add some smarts interrrogating texlive where its files are. Do you want to take a stab at that?

from rcpparmadillo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.