I am actually trying to open a netcdf file with 'Ferret' and I get this error message.
In sum up, when trying to open the file:
use all_sondes_test.nc
I get the following message:
NetCDF: Not a valid data type or _FillValue type mismatch (OPeNDAP/netCDF Error code -45) is this a CDF file ?
I hope the problem looks clear to the community.
I have already tried to find some help on the web, without any success.
Thanks for your help !
Related
I have just started using R, and I seem to be falling over at the first hurdle...
I have defined an object in my R project which is the csv data for a file I have stored on my PC:
rgvaAssessment<-read.csv("C:\\Users\\cheddar\\Downloads\\attachments\\rgva_assessment X.csv")
However, when I type the object name in the R console, I get the following error:
> rgvaAssessment
Error: object 'rgvaAssessment' not found
Could someone please let me know what obvious error I am making here? The file definitely exists in the defined location.
Thanks
For some reason, I im getting this error when I run:
DOW = tq_index("DOW")
and the error:
Getting holdings for DOW
Error at DOW during download.
Error: Evaluation error: zip file 'C:\Users\mbhe\AppData\Local\Temp\RtmpA59N1Y\file1bf4feb669b.xlsx' cannot be opened.
This excel file is different every time, so if I run it again, I will get the same error, but a new excel will be created and reported in the error.
This is the first time my R Studio have done this.
Does any of you guys know how to fix this? When i look around the internet, this error only occurs when you actually try to load a excel file, not when you want to get info from tq_index.
This seems like an issue with tidyquant package.
You can try DOW = quantmod::getQuote("^DJI")
So I'm rather new to R, and I'm learning how to mine text from this handy website: https://eight2late.wordpress.com/2015/05/27/a-gentle-introduction-to-text-mining-using-r/
I do have my own text set of .doc, .docx, and .xlsx files and I'm trying to mine them. They're located in a folder in my working directory called 'files', but I have already encountered an error after simply writing a few lines of code.
The code I have so far is:
library(tm)
library(readtext)
data = readtext('files')
At this point, after waiting for 25 seconds or so, I get the error:
Error: System call to 'antiword' failed (1): The Big Block Depot is damaged
and the code stops running there.
I have tried searching online for solutions but it seems like a fairly rare error and so I only found 1 possible solution at https://github.com/ropensci/antiword/issues/1 but that did not work for me.
This solution suggested that one of my files were corrupt, and suggested using the code
fixInNamespace(antiword, pos="package:antiword")
to change the error to a warning to not interrupt the reading of the files. I tried that, and at first it raised the error of
Error in as.environment(pos):
no item called "package:antiword" on the search list
After which, I loaded the antiword library with a library(antiword) and changed the stop( to a warning(. However, when I ran the data = readtext('files') line again, it immediately raised the error
Error in is_windows() : could not find function "is_windows"
I'm at a loss here! Any help would be appreciated. Should I be using another package in this case?
I had the same problem with my code, where I tried to get a doc. file in R. I also used the readtext library. What helped me was converting the Word documents I was trying to get into R from doc. to docx. When I ran the same code after it worked.
I am trying to reproduce simple example with rCharts library to plot sankey chart. I found this example from scratch and tried to reproduce it, however, I came up with some problems.
Firstly I have tried running this code without nothing. Then I found out and realized, that I need d3_sankey in my computer. So, I have downloaded it from here and copied to C:\Users\adomas\Documents\R\win-library\3.0\rCharts\libraries\widgets\d3_sankey.
Then I've tried that unchanged code once more and still got the following error:
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file '/config.yml': No such file or directory
Since that didn't help too, I have tried changing paths from:
sankeyPlot$setLib('libraries/widgets/d3_sankey')
sankeyPlot$setTemplate(script = "libraries/widgets/d3_sankey/layouts/chart.html")
to
sankeyPlot$setLib('C:/Users/adomas/Documents/R/win-library/3.0/rCharts/libraries/widgets/d3_sankey')
sankeyPlot$setTemplate(script = "C:/Users/adomas/Documents/R/win-library/3.0/rCharts/libraries/widgets/d3_sankey/layouts/chart.html")
However, this time, the blank screen in Viewer appeared but no actual Sankey graph and I got the following in console:
Warning message:
In readLines(file, warn = warn, ...) :
invalid input found on input connection 'C:/Users/adomas/Documents/R/win-library/3.0/rCharts/libraries/widgets/d3_sankey/layouts/chart.html
I have tried changing paths and etc, but still something is wrong. And I am not sure if I need to use sankeyPlot$setTemplate at all.
I want to use Sankey chart in my shiny application, but firstly I want to reproduce simply in R. Suggestions would help a lot!
Versions of libraries:
rCharts_0.4.2
igraph_0.7.0
R version: 3.0.2
EDITED:
I have tried this code on different system. And everything works there. Versions of libraries and R are the same and I've copied same documents and just specified full path. I have tried that again on my own computer, but still got the same error yet.
I've experienced the same issues. The solution for me was to upgrade rCharts :
devtools::install_github("rCharts", "ramnathv")
Second, I didn't include the sankeyPlot$setTemplate() line.
Finally, the path in $setLib() should be a direct path (as discribed in the solution of #adomasb or the following line can be used to link directly to the original github:
sankeyPlot$setLib('http://timelyportfolio.github.io/rCharts_d3_sankey/libraries/widgets/d3_sankey')
A downside of this last approach is that internet is always required to run the script.
Alright, eventually it works as it should be.
I just rebooted my system and that's it. However, if anyone would come up with same problem, just be sure you specify direct path, where you placed all necessary files for d3_sankey. Therefore, you rather use
sankeyPlot$setLib('C:/Users/adomas/Documents/R/win-library/3.0/rCharts/libraries/widgets/d3_sankey')
This is wonderful chart type. Good luck!
I just ran below R code but I am getting error msg... Could anyone help me how to make this code runable on my machine. Thanks.
Here's the command:
load(file = "c:\\abcdeXXX.RData")
And here's the resulting error message:
Error in if (!grepl("RD[AX]2\n", magic)) { : argument is of length zero
I suspect your file is empty.
The error message means that the argument magic has length zero. If you read the source code for load, you will find the following line of code:
magic <- readChar(con, 5L, useBytes = TRUE)
Thus magic is the first 5 bytes of your file. In other words, your file is empty.
it is possible that the RData file you are trying to open is damaged or incomplete. Can you open it on another machine?
Also worth noting, early versions of R cannot open RData files created by later versions of R. Although I would not expect a version mismatch to cause your error.