[R] installation problem for a new package

Tariq Khasiri t@r|qkh@@|r| @end|ng |rom gm@||@com
Fri Feb 25 18:50:58 CET 2022


Thanks to everyone for their kind and insightful feedback! After following
the instruction, I successfully install the package. Much obliged for your
time!



On Thu, 24 Feb 2022 at 17:38, Rui Barradas <ruipbarradas using sapo.pt> wrote:

> Hello,
>
> When I tried to run the OP's code I too got the error about package
> VCXR. The solution was to run first
>
>
> install.packages("CVXR")
>
>
> This installs its dependency gmp.
> Then run the 3 install_github and there was no problem, just a warning
> about package colorspace.
>
> package ‘colorspace’ successfully unpacked and MD5 sums checked
> Warning: cannot remove prior installation of package ‘colorspace’
> Warning: restored ‘colorspace’
>
> Anyway, it's true that when install.packages throws errors about
> dependencies the solution is invariably to install them one by one,
> which can be time consuming. In this case it wasn't
>
> Hope this helps,
>
> Rui Barradas
>
>
> Às 22:05 de 24/02/2022, Jeff Newmiller escreveu:
> > Do use "reply-all"... others may be able to respond more quickly or more
> accurately than I. I have re-introduced the mailing list to this reply.
> >
> > For example, if you read [1] it says there is a system requirement that
> the completely separate gmp software be installed using your system
> software installation tools. I happen to be unfamiliar with the details of
> MacOS system administration, so I cannot offer useful guidance other than
> that you need to solve this and that there exists a mailing list dedicated
> to such MacOS-specific questions about R [2]. You can of course simply
> Google for similar threads or blogs about gmp on MacOS to find clues as
> well.
> >
> > I will also add that there seem to be a variety of conditions that can
> cause the automatic dependency management features of install.packages() to
> fail, and in such cases it is normal to focus on installing the problematic
> dependent packages one at a time. This is particularly true in this case
> where there are requirements for the dependency beyond what R can deal
> with, so ignoring advice from those with more experience than yourself
> about focusing on the dependency separately is probably less productive
> than simply following that advice.
> >
> > [1] https://cran.r-project.org/web/packages/gmp/index.html
> > [2] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> >
> > On February 24, 2022 12:11:14 PM PST, Tariq Khasiri <
> tariqkhasiri using gmail.com> wrote:
> >> Will correct my formatting as you kindly suggested.
> >>
> >> I believe gmp and CVXR is not getting installed but with the
> dependencies,
> >> it's supposed to be installed as the package builder posted in his
> website.
> >> Therefore, I'm quite puzzled that do I need to install the other two
> >> packages separately or not?
> >>
> >> install_github("asheshrambachan/HonestDiD", dependencies = TRUE)
> >> Downloading GitHub repo asheshrambachan/HonestDiD using HEAD
> >> Installing 1 packages: gmp
> >>
> >>   There is a binary version available but the source version is later:
> >>      binary source needs_compilation
> >> gmp 0.6-2.1  0.6-4              TRUE
> >>
> >> Do you want to install from sources the package which needs compilation?
> >> (Yes/no/cancel) yes
> >> installing the source package ‘gmp’
> >>
> >> trying URL 'https://cran.rstudio.com/src/contrib/gmp_0.6-4.tar.gz'
> >> Content type 'application/x-gzip' length 163941 bytes (160 KB)
> >> ==================================================
> >> downloaded 160 KB
> >>
> >> * installing *source* package ‘gmp’ ...
> >> ** package ‘gmp’ successfully unpacked and MD5 sums checked
> >> ** using staged installation
> >> checking for gcc... clang -mmacosx-version-min=10.13
> >> checking whether the C compiler works... yes
> >> checking for C compiler default output file name... a.out
> >> checking for suffix of executables...
> >> checking whether we are cross compiling... no
> >> checking for suffix of object files... o
> >> checking whether we are using the GNU C compiler... yes
> >> checking whether clang -mmacosx-version-min=10.13 accepts -g... yes
> >> checking for clang -mmacosx-version-min=10.13 option to accept ISO
> C89...
> >> none needed
> >> checking how to run the C preprocessor... clang
> -mmacosx-version-min=10.13
> >> -E
> >> checking whether we are using the GNU C++ compiler... yes
> >> checking whether clang++ -mmacosx-version-min=10.13 -std=gnu++14 accepts
> >> -g... yes
> >> checking for grep that handles long lines and -e... /usr/bin/grep
> >> checking for egrep... /usr/bin/grep -E
> >> checking for ANSI C header files... rm: conftest.dSYM: is a directory
> >> rm: conftest.dSYM: is a directory
> >> yes
> >> checking for sys/types.h... yes
> >> checking for sys/stat.h... yes
> >> checking for stdlib.h... yes
> >> checking for string.h... yes
> >> checking for memory.h... yes
> >> checking for strings.h... yes
> >> checking for inttypes.h... yes
> >> checking for stdint.h... yes
> >> checking for unistd.h... yes
> >> checking gmp.h usability... no
> >> checking gmp.h presence... no
> >> checking for gmp.h... no
> >> configure: error: Header file gmp.h not found; maybe use
> >> --with-gmp-include=INCLUDE_PATH
> >> ERROR: configuration failed for package ‘gmp’
> >> * removing
> >> ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/gmp’
> >>
> >> The downloaded source packages are in
> >>
> ‘/private/var/folders/4m/tvx9lnqs0rx6wgnysxz36vm00000gp/T/Rtmpk3pocK/downloaded_packages’
> >> ✓  checking for file
> >>
> ‘/private/var/folders/4m/tvx9lnqs0rx6wgnysxz36vm00000gp/T/Rtmpk3pocK/remotes86e84daddc5e/asheshrambachan-HonestDiD-419f305/DESCRIPTION’
> >> ...
> >> ─  preparing ‘HonestDiD’:
> >> ✓  checking DESCRIPTION meta-information ...
> >> ─  checking for LF line-endings in source and make files and shell
> scripts
> >> ─  checking for empty or unneeded directories
> >> ─  building ‘HonestDiD_0.2.0.tar.gz’
> >>
> >> * installing *source* package ‘HonestDiD’ ...
> >> ** using staged installation
> >> ** R
> >> ** data
> >> *** moving datasets to lazyload DB
> >> ** inst
> >> ** byte-compile and prepare package for lazy loading
> >> Error: package or namespace load failed for ‘CVXR’ in loadNamespace(j <-
> >> i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
> >> there is no package called ‘gmp’
> >> Error: package ‘CVXR’ could not be loaded
> >> Execution halted
> >> ERROR: lazy loading failed for package ‘HonestDiD’
> >> * removing
> >>
> ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/HonestDiD’
> >> Warning messages:
> >> 1: In i.p(...) : installation of package ‘gmp’ had non-zero exit status
> >> 2: In i.p(...) :
> >>   installation of package
> >>
> ‘/var/folders/4m/tvx9lnqs0rx6wgnysxz36vm00000gp/T//Rtmpk3pocK/file86e825657e7b/HonestDiD_0.2.0.tar.gz’
> >> had non-zero exit status
> >>
> >>
> >>
> >>
> >> On Thu, 24 Feb 2022 at 13:57, Jeff Newmiller <jdnewmil using dcn.davis.ca.us>
> >> wrote:
> >>
> >>> These messages seem relevant:
> >>>
> >>>> Error: package �CVXR’ could not be loaded
> >>>> Warning messages:
> >>>> 1: In i.p(...) : installation of package �gmp’ had non-zero exit
> status
> >>>
> >>> You need to make sure these packages are installed successfully before
> the
> >>> package you are interested will install.
> >>>
> >>> Please don't send formatted email to this list ... as the Posting Guide
> >>> indicates, the list is for plain text and others may receive a garbled
> >>> version of what you sent it your email program is not configured
> properly.
> >>>
> >>> On February 24, 2022 11:43:05 AM PST, Tariq Khasiri <
> >>> tariqkhasiri using gmail.com> wrote:
> >>>> Hello everyone,
> >>>>
> >>>> I'm trying to install a package honestdid and following the commands
> of
> >>> the
> >>>> developer of that package
> >>>>
> >>>> # Install some packages
> >>>> library(devtools)
> >>>> install_github("bcallaway11/BMisc", dependencies = TRUE)
> >>>> install_github("bcallaway11/did", dependencies = TRUE)
> >>>> install_github("asheshrambachan/HonestDiD", dependencies = TRUE)
> >>>>
> >>>>
> >>>> But, the error message is saying:
> >>>>
> >>>> * installing *source* package �HonestDiD’ ...
> >>>> ** using staged installation
> >>>> ** R
> >>>> ** data
> >>>> *** moving datasets to lazyload DB
> >>>> ** inst
> >>>> ** byte-compile and prepare package for lazy loading
> >>>> Error: package or namespace load failed for �CVXR’ in loadNamespace(j
> >>>> <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
> >>>> there is no package called �gmp’
> >>>> Error: package �CVXR’ could not be loaded
> >>>> Execution halted
> >>>> ERROR: lazy loading failed for package �HonestDiD’
> >>>> * removing
> >>>
> �/Library/Frameworks/R.framework/Versions/4.1/Resources/library/HonestDiD’
> >>>> Warning messages:
> >>>> 1: In i.p(...) : installation of package �gmp’ had non-zero exit
> status
> >>>> 2: In i.p(...) :
> >>>>   installation of package
> >>>
> >>>>
> �/var/folders/4m/tvx9lnqs0rx6wgnysxz36vm00000gp/T//Rtmpk3pocK/file86e83034c58c/HonestDiD_0.2.0.tar.gz’
> >>>> had non-zero exit status
> >>>>
> >>>>
> >>>> Can anyone guide me why i'm having this issue? Thanks in advance !
> >>>>
> >>>>        [[alternative HTML version deleted]]
> >>>>
> >>>> ______________________________________________
> >>>> R-help using 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.
> >>>
> >>> --
> >>> Sent from my phone. Please excuse my brevity.
> >>>
> >
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list