Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrimerMiner #41

Open
Saleh-Aljaafari opened this issue Aug 17, 2022 · 1 comment
Open

PrimerMiner #41

Saleh-Aljaafari opened this issue Aug 17, 2022 · 1 comment

Comments

@Saleh-Aljaafari
Copy link

Saleh-Aljaafari commented Aug 17, 2022

Hi Dears

I got message when trying to download PrimerMiner through the code

install.packages("PrimerMiner", repos = NULL, type="source", dependencies=T):

Warning: invalid package 'PrimerMiner'
Error: ERROR: no packages specified
Warning in install.packages :
installation of package ‘PrimerMiner’ had non-zero exit status

Any clue to solve this issue?

@nycmyc
Copy link

nycmyc commented May 20, 2024

Greetings!

Had a similar issue when first installing PrimerMiner, I'm brand new to working with R and figured it was probably user error rather than with the package itself.

On line 8 of the "package_tutorial.R" file running the command
install.packages("PrimerMiner", repos = NULL, type="source", dependencies=T)
as it is will return the following error, as you mentioned:

Warning: invalid package ‘PrimerMiner’
Error: ERROR: no packages specified
Warning in install.packages :
installation of package ‘PrimerMiner’ had non-zero exit status

After some head scratching, a cup of coffee, reviewing the commands and reviewing the Installation Wiki entry, I found the solution.

Instead of entering the default command on line 8 of "package_tutorial.R" file, try using this command install.packages("path_to_file", repos = NULL, type="source"), being sure to update "path_to_file", to reflect the directory of where PrimerMiner-master/PrimerMiner is located on your local machine.

This updated command will tell R to install the PrimerMiner package from the directory on your local machine where you extracted the "PrimerMiner-master.zip" file, downloaded from the PrimerMiner's GitHub page.

Here is an example of the updated command with the "path_to_file", updated to reflect if PrimerMiner-master/PrimerMiner was located on the Desktop of my local machine:
install.packages("/Users/User/Desktop/PrimerMiner-master/PrimerMiner", repos = NULL, type="source", dependencies=T)
With this as the output from R following the successful installation of PrimerMiner:

installing source package ‘PrimerMiner’ ...
using staged installation
R
inst
byte-compile and prepare package for lazy loading
help
installing help indices
building package indices
installing vignettes
testing if installed package can be loaded from temporary location
testing if installed package can be loaded from final location
testing if installed package keeps a record of temporary installation path
DONE (PrimerMiner)

Hope this helps! 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants