I'm hoping someone knows the answer to this issue. It's been previously brought up here and was resolved, with the problem attributed to an antivirus preventing the installation. I don't currently have an antivirus installed on my mac, but it still seems to be an issue. Here is the code input:
> snailcloth7x<-drm(mort/total~conc, weights=total, data=snailcloth7, fct=LL.4(fixed=c(NA,0,1,NA)), type="binomial")
And this is the response I receive:
could not find function "drm"
I understand that this may have to do with an issue installing the package properly. When I install the drc package using
install.packages("drc")
I get this, which seems fine:
trying URL 'https://cran.pacha.dev/bin/macosx/contrib/4.1/drc_3.0-1.tgz'
Content type 'application/octet-stream' length 923508 bytes (901 KB)
==================================================
downloaded 901 KB
tar: Failed to set default locale
But then when I retrieve it from the library through
library(drc)
It shows this message
there is no package called 'haven'
How do I resolve this? Any suggestions are appreciated.
Fixed the issue. Received on response on Reddit "You've gotten stuck in a dependency problem. Happens from time to time. If this was me, the next thing I'd do is install.packages("haven"), then try to load drc again. Keep repeating for every "there is no package" error until it works."
Related
I'm trying to install the newly released Plotly Dash package for R as described on plotly website https://dashr.plot.ly/installation, i.e. running
library(devtools) # devtools: Tools to Make Developing R Packages Easier
# The following statement will also install dashCoreComponents,
# dashHtmlComponents, and dashTable
install_github('plotly/dashR') # The core dash backend
This is what it returns, 'unknown package' any help much appreciated
Error: Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 86.134.113.102. (But here's the good news:
Authenticated requests get a higher rate limit. Check out the
documentation for more details.)
Just installed the package to reproduce the error, unfortunately can't be able to reproduce it. However, a potential solution along "error 403 and
API rate limit exceeded ..." could be to add your github authorization token in your .Rprofile and that is what the "But here's the good news:" message inside the bracket is trying to inform you. Have a look at the actual project github site Dash for R if you haven't already. That might as well provide you an input to solving the issue.
I am a starter in R and new to StackOverflow and this is the first time I raise a question, I hope i'm following all the rules...
Anyway. I got R (3.5.0 version) and R-Studio on my laptop with Win 10 Home installed (under the same parent folder 'D:\') and reset the temporary file directory to a folder in D:\ so that the Chinese in C:\Users\中文\documents (which is the default place for tempo files) doesn't affect the connection btw R-studio and R (I was told any relevant directory has to be in English to make R-Studio work).
The problem is, I cannot install the 'graphics' package when I run
install.packages('graphics')
The resulting error says something like this:
>Error in install.packages : Updating loaded packages
>Restarting R session...
>Error in gzfile(file, "wb") : cannot open the connection
>Error saving session (options): R code execution error
>WARNING: Forcing suspend of process in spite of all session data not being fully saved.
It's quite weird since the 'graphics' package is pretty basic and as a matter of fact I haven't found anyone reporting such errors on the internet.
It also bothers me that other packages like 'forecast' and 'XML' can be successfully installed without any error report.
I've looked at some similar questions on StackOverflow, having error reports with "Error in gzfile(file, "wb") : cannot open the connection", but they all seem to have something else to complete the sentence. In my case it just stops the error description with "cannot open the connection". Also I couldn't find people having similar problems with "Error saving session (options): R code execution error".
I do realize that this is quite unusual. I can't even find the proper tags other than r for this question. Although it seems that no one has trouble with the 'graphics', this problem is really bothering me and I hope someone can give possible solutions. Thanks a lot.
Rencently I find a Palmer Drought Severity Index (PDSI) calculation package written by cszang from GIthub. According to the website https://github.com/cszang/pdsi, the install is very easy:
install.packages("devtools")
library(devtools)
install_github("cszang/pdsi")
However, when I install it, an error occurs like this:
Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Couldn't resolve host name
Does anyone know about this issue? Thanks a lot.
Github is currently down, probably from the DDoS attack currently affecting a bunch of sites including Twitter, Spotify, and more
You can also use scPDSI library in R for calculation of Palmer Drought Severity Index.
i keep hitting this error today and I already download the plyr from github but it still doesn't work. I restarted R-studio even my PC after installing plyr..
It appears the problem may be due to a change made to the way R resolves references to external DLLs, as mentioned halfway through the thread here.
Adding the parameter PACKAGE="plyr" to the .Call function call on line 12 of R/loop_apply.R in the source (clone from github), and then installing the package from that source (install.packages("<path to plyr source>", type="source", repos=NULL)) seems to fix it.
I want to use t-test and z-test function, its need to use BSDA package, but
when I install selected, it shows:
trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.13/BSDA_1.0.tgz'
Content type 'application/x-gzip' length 833688 bytes (814 Kb)
opened URL
==================================================
downloaded 814 Kb
tar: Failed to set default locale
The downloaded packages are in
/var/folders/4X/4X093vewHqCEqkPJXgl8I++++TI/-Tmp-//RtmpdKKQ3g/downloaded_packages
I don't know why, please help me to tell the mistake. I'm newbie with this program.
Appreciate all answers.
I do not see any problem so far. I get a similar message when I install pkg:BSDA from that CRAN repository (although I did not get the message about not setting a default locale.). That message "packages are in
/var/folders/xS/xSUsVXT..." is generally a sign of success. My guess is that you are a new user and have not yet understood that in addition to installing packages in the Library, which is a durable event, that you also need to load them into your workspace, which is a temporary event, only persisting as long as your session. Try this:
library(BSDA)
If Dirk is correct and that local message is a sign of failure, then in the past some people have reported success with this procedure (to be done in a Terminal session) taken from the Mac-R-FAQ:
defaults write org.R-project.R force.LANG en_US.UTF-8