Open j-harbin opened 4 years ago
A further note to this, after further investigation I realize that of the list of txt files given in the link http://www3.mbari.org/lobo/data/floatvizdata/floatvizconfig.txt , only the first four txt files: 4900093.TXT, 5900952.TXT, 5901069.TXT, 5901336.TXT will successfully load. The rest receive the same 'Number of items to replace is not a multiple of replacement length" error.
Short summary of problem
When loading data from the http://www.mbari.org/science/upper-ocean-systems/chemical-sensor-group/floatviz/ website, some data loads successfully, and some data does not.
Details (optional)
More specifically, in some cases the data is successfully loaded, and in some cases there is a ' Number of items to replace is not a multiple of replacement length' error.
What you did
The following code worked properly:
install.packages('devtools') library(devtools) Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS = TRUE) install_github('richardsc/bioArgo', ref='master', force=TRUE) library(bioArgo) bioTest<- read.bioArgo('4900093.TXT', url=TRUE) summary(bioTest)
However, the following code did not work: install.packages('devtools') library(devtools) Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS = TRUE) install_github('richardsc/bioArgo', ref='master', force=TRUE) library(bioArgo) bioTestTwo<- read.bioArgo('6975BERMUDA.TXT', url=TRUE) summary(bioTestTwo)
Downloading to C:\Users\harbinj\AppData\Local\Temp\1\RtmpuwcRWm\file481877461ee trying URL 'http://www3.mbari.org/lobo/Data/FloatVizData/6975BERMUDA.TXT' Content type 'text/plain' length 2100543 bytes (2.0 MB) downloaded 2.0 MB
Error in res[i, 1:n] <- rev(x[[i]][[field]]) : number of items to replace is not a multiple of replacement length
What you expected to happen
I expected to be able to load the '6975BERMUDA.TXT' data the same way as the '4900093.TXT' data.
How urgent is this?
Not urgent, just thought I would bring this to your attention