I used RStudio to create an R package ('cryptArith'). The build went fine and all relevant R files are present and functional (checked independently). When I try to load the package and use the functions I get this:
install.packages('cryptArith')
Warning message:
package ‘cryptArith’ is not available (for R version 4.0.2)
I have been unable to find any information about the source of this error.
Related
I'm new at R and trying to usetidyverse. The installation seems to go fine, but when I want to load the package, I get this error: there is no package called 'tzdb'. When I try to install 'tzdb' I get a warning that package 'tzdb' is not available for this version of R. I'm using version 4.0.5, which I believe should work.
Any suggestions on how I can get this package to work (so I can start using tidyverse)?
Edit: I've added an image of the code I ran + the outputs of sessionInfo() , options("repos") and .libPaths() below. (I'm sorry I can't copy paste code nor use the browser of the virtual machine that I work from).
https://i.stack.imgur.com/hra1r.png
It does give a warning stating that the CRAN mirror is set to an insecure URL. Could that be the problem? It didnt't seem matter for the other packages.
I want to install a package named "locClass" in R but always failed and kept getting the following warning:
install.packages("locClass", repos="http://download.r-forge.r-project.org/")
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘locClass’
These will not be installed
The install command is referred to: https://r-forge.r-project.org/R/?group_id=1187
Also, I downloaded the package source from the above website. But R returned the following:
library(locClass)
Error in library(locClass) : ‘locClass’ is not a valid installed package
My R version is 3.3.3. I tried the 3.4.0 but failed the same way.
This is not exactly a solution but an alternative to utilize functionality of package locClass. Download the package file of locClass from here and source(functions.R) present here. This way you can use all functions available in package.
Note : function.R means FLXMCL.R, FLXMCLconstant.R etc.
I'm still looking for a better solution but this is a temporary alternative.
Root of problem:
My environment is RevoREnt 7.3 that is tied with R 3.1.1.
I need to install tidyr package. tidyr needs DBI package.
I installed/loaded DBI (v0.5). R gave warning:
Warning message:
package ‘DBI’ (0.5) was built under R version 3.3.1
After installing/loading DBI (v0.5), my search help function was corrupted with error: i.e.,
"?? yay"in R console gave the following error:
"Error in `[<-`(`*tmp*`, , "name", value = sub("\\.[^.]*$", "", basename(vDB$File))) : subscript out of bounds"
Then, instead of Uninstall/Reinstall RevoREnt, I decided to save my broken RevoREnt (noticing that there are many R user facing corrupted search help function without any solution to mend).
I unload/uninstall DBI from R console, then I deleted the folder of DBI package from R library location via Windows Explorer. I re-run RevoREnt and write "??yay" in console:
My Help Browser (http://127.0.0.1:27971/doc/html/Search?pattern=yay) was opened
"The search string was "yay". No results found." appeared there.
That is: I saved my search help function without uninstalling/Re-installing RevoREnt.
What I did to solve/find:
1. Since I very needeed tidyr package, I decided to install/load DBI package that is compatible with my R 3.1.1. I went CRAN DBI (https://cran.r-project.org/web/packages/DBI/index.html)
There, it writes "Depends: R (≥ 2.15.0)" in DBI page.
Does this mean that DBI (v0.5) was built under R2.15.0?
2. I went to DBI's archieve: https://cran.r-project.org/src/contrib/Archive/DBI/
Tried to find one by one loading and checking the warnings in R console:
Warning message:
package ‘DBI’ (0.5) was built under R version 3.3.1
Warning message:
package ‘DBI’ (0.4) was built under R version 3.1.3
Warning message:
package ‘DBI’ (0.3.1) was built under R version 3.1.2
Eventually, by trial and error, I found DBI 0.3.1 does not corrupt my search help function though it is built under 3.1.2>3.1.1!
Then, I reversed back. This time DBI 0.4 also did not corrupt search help function unexpectedly. DBI 0.5 always continued to corrupt the search help function.
Isn't there any simple way of finding R version under which the packages were built?
The information you want is in the last column ("Built") of the output of installed.packages(), per https://stat.ethz.ch/R-manual/R-devel/library/utils/html/installed.packages.html.
.libPaths() # get the library location
installed.packages(lib.loc = "C://Revolution//R-Enterprise-7.3//R-3.1.1//library")
My question is related to the post: R Error: package 'mvtnorm' required by 'multcomp' could not be found
I'm using Revolution R and I'm trying to install the pbkrtest package and I have already installed the lme4 package. However, during installation of pbkrtest, R doesn't seem to be able to find lme4. Any idea why? The same issue has popped up with a few other packages and dependencies.
I performed this exact operation last week without issue. I don't have admin rights, and so had to save the file to my user directory. Here is the process I used:
Windows 7, revo R 3.2.3
construct a directory on my desktop, open R:
setwd(<path to my new folder>)
download.packages(<myPackages>, destdir=getwd(), type="win.binary")
install.packages(list.files(), repos=NULL, type="win.binary", lib=Sys.getenv("R_LIBS_USER"))
Notes:
* The reason I used download.packages() is to build an in-house repository for work.
* A few of the (~4 of 300) packages did not download, so I had to download them manually.
* This is my first experience with revo R, specifying type was never necessary in vanilla R, but seemed necessary here.
I installed BQuant package in my windows system.When I loaded the package it showed the following error Error: package ‘BQuant’ is not installed for 'arch=i386' . Can anyone please sort it out.If not is there any other packages for NMR analysis in R.
Since according to your recent other question you are only interested in a good peak detection algorithm, you could get the code of the relevant functions directly from the package source (look in folder R inside the zip).