Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I updated to R 4.1.0 yesterday (19 May 2021) and initially everything was working fine, I just needed to reinstall all of my User Library packages. Now I am unable to make a simple ggplot.
library(ggplot2)
Cars <- mtcars
ggplot(Cars, aes(x = mpg, y = hp)) +
geom_point()
The ggplot line causes a whole bunch of [21263:21263:20210520,162145.598752:ERROR elf_dynamic_array_reader.h:61] tag not found (see picture).
Looking around, this error is usually associated with nvidia graphics drivers. I have a GeForce2 with what I think is the newest driver (460) but even when I switch to my native Intel graphics driver I get the same error. Has anyone else experienced this yet? Should I revert back to R 3.6.3?
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 12 months ago.
Improve this question
I'm studying time series and need to use hw() function. I cannot make it working even on a simple code based on the co2 dataset :
library(forecast)
co2_train=window(co2,start=c(1959,1),end=c(1989,12))
co2_test=window(co2,start=c(1990,1),end=c(1997,12))
h=hw(co2_train,seasonal='additive',damped=FALSE,h=96) #code stops to be executed here
accuracy(h)
When I load the R Markdown, the first time I try to run it I get the following error :
Error in ets(x, "AAA", alpha = alpha, beta = beta, gamma = gamma, phi = phi, :
No model able to be fitted
Then if I re-run the code, RStudio is compiling indefinitively and I need to restart it to work again. All other models are working (ARIMA, Neural networks forecast...). Only this function makes trouble.
I tried to create a new file, a new project, restart R Studio, reinstall R Studio... with no luck.
Any help on this would be very appreciated.
Thanks.
I don't really know the reason, but a brand new installation on a new laptop at work helped me to get rid of this issue. Maybe some options which remained in my other laptop after uninstallation.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I'm trying to begin using plotly for R, but I'm having trouble with an error about username. When I try to execute the following code...
test=ggplot(diamonds,aes(x=diamonds$carat,y=diamonds$price))+geom_point()
test2=plotly(test)
plotly(test)
...I get the error message:
Storing 'username' as the environment variable 'plotly_username'
Error in Sys.setenv(plotly_username = username) :
wrong length for argument
I thought plotly's R package was available for use without a username via htmlwidgets. As far as I can tell, I'm using the latest version of plotly, ggplot, and htmlwidgets. What am I doing wrong?
You have to use ggplotly()
So,
test <- ggplot(diamonds,aes(x = carat,y = price))+ geom_point()
ggplotly(test)
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I made an upgrade in R, and since then, I have a lot of errors in programs which were working well before.
The one I cannot go around is :
Error: could not find function "setnames"
I am loading the packages (
library(plyr)
library(dtplyr)
library(tidyr)
library(lsr)
library(ggplot2)
library(stats)
and i am using R :
platform x86_64-w64
major 3
minor 3.2
Does anybody knows how to go around please ?
It's probably a typo, if you're referring to setNames in stats.
Remember to capitalize the 'n'.
See https://stat.ethz.ch/R-manual/R-devel/library/stats/html/setNames.html
(The other possibility is that you may not have loaded the data.table package. See, for example, Using data.table::setnames() when some column names might not be present)
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
In running a knitr report I noticed that ggplot2 produces a graph without y-ticks/labels on Windows, but does on my Linux/Rstudio install.
The following codes shows the issue for me.
df=data.frame(pos=seq(1,10),data=seq(10,1,-1))
ggplot(data=df, aes(x=pos,y=data))+
scale_y_discrete(breaks=seq(1,10,2))+
geom_line()
Here are the graphs that I get:
Windows
Linux
The breaks show if I remove the scale_y_discrete function call, however I need it for formatting my output.
Is this an environmental issue? A configuration issue?
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I have installed R Version 3.0.2. I am trying to run association analysis on a dataset.
While trying to install the arules package, using the code:
install.packages(“arules”)
I get and error:
Error: unexpected input in "install.packages(“arules")
Can you guide as to how I can install this package and use it to run association on an imported txt file using R?
You appear to be using "smartquotes" instead of straight quotes like " around arules. R cannot recognize these. Change to straight quotes and everything should work.