Installation of package ‘quantreg’ had non-zero exit statusĮRROR: dependencies ‘minqa’, ‘RcppEigen’ are not available for package ‘lme4’ ![]() * removing ‘/Users/wuxiaowen/Library/R/3.6/library/quantreg’ Installation of package ‘RcppEigen’ had non-zero exit statusĮRROR: dependency ‘SparseM’ is not available for package ‘quantreg’ * removing ‘/Users/wuxiaowen/Library/R/3.6/library/RcppEigen’ Ld: warning: directory not found for option '-L/usr/local/gfortran/lib'Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation)ĮRROR: compilation failed for package ‘RcppEigen’ Ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0' framework R -Wl,-framework -Wl,CoreFoundation The last a few lines are: 17 warnings generated.Ĭlang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c init.c -o init.oĬlang++ -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o RcppEigen.so RcppEigen.o RcppExports.o fastLm.o init.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/. When i selected Yes, it will download the packages, and then generate lots lots of lines of codes. ‘SparseM’ ‘minqa’ ‘RcppEigen’ ‘quantreg’ ‘lme4’ĭo you want to attempt to install these from sources? (Yes/no/cancel) Packages which are only available in source form, and may need compilation of C/C++/Fortran: Installing package into ‘/Users/wuxiaowen/Library/R/3.6/library’Īlso installing the dependencies ‘SparseM’, ‘minqa’, ‘RcppEigen’, ‘pbkrtest’, ‘quantreg’, ‘lme4’ A colleague of mine is using the compiled package on windows without any trouble, though.When I tried to install "car" in Rstudio > install.packages("car") I know this script works on multiple macs, but have never had the misfortune to have to use a windows machine to compile. This seems to be a great solution, and the above script recompiles the vignettes whenever I update my code, which is a good check on everything. Rstudio's editor has an option to compile this independently of the package itself. Rnw file is basically latex with embedded knitr chunks. Rnw file, which can be edited in Rstudio or any other text editor. I also wrote a vignette for this package. ![]() Again, have a look at the plyr github to get a feel for this. man/*.Rd (where * is the function name) automagically when I execute this script. I have R-markdown in the headers of all of my functions, so the help files are created as. I'm just not sure what, and it works at the moment. ![]() Try(file.remove(file.path(getwd(),"mypack.pdf")))ĭisclaimer: I am fully aware that I may have some of the above in the wrong order, or be doing something daft. System("R CMD INSTALL -preclean mypack_1.00.tar.gz") # now we actually build and install the package Library("roxygen2") # could use "require" # load the packages we need for building / documentation Try(detach(name = "package:mypack",unload = TRUE)) You'll need to have installed to make this work. I don't like having to remember to switch between the usual IDE and some project. I use a script (below) to build my package from within Rstudio, rather than using Rstudio's canned options. ![]() RStudio is a good editor to use.Ĭompare your DESCRIPTION file contents with someone else's github repositories, for example the plyr description file.Īlso, there's a related question here with an answer that explains some more of how the DESCRIPTION file is used. It's worth checking to see if there are any odd characters hiding in your file. Edit the description fileĮdit the DESCRIPTION file using a reader that lets me see non-printing characters. From your IDE, try this: library(roxygen2) Use the roxygen2 package to create the mypack package skeleton. Following is an outline of how I've approached this for a package that we'll call mypack.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |