perhaps there are rows without equal signs. in which case variable names cant be made out of them.
Do you really want approx 50,000 variables assigned ?
how would you know which of the 50,000 variables you want to use in your program ?
maybe you should prepare a list of the variables you know you want to read, and that can just get the numbers for those....
anyway, here is example of junkydata that would interfere, being 'dealt with' by ignoring it.
mychar <- c("bOrderData=1","","fRPMMean=18.856","junk=junk")
library(tidyverse)
mychar_split <- str_split(mychar,"=")
library(purrr)
walk(mychar_split,
~assign(x = .[1],
value = parse_number(.[2]),
envir = globalenv()))
fRPMMean
walk(mychar_split,
~tryCatch(assign(x = .[1],
value = parse_number(.[2]),
envir = globalenv()),
warning=function(w) cat(.[1],"problem ",w$message[[1]]),
error=function(e) cat(.[1],"problem ",e$message[[1]]),
finally = cat(.[1],"\n")))
fRPMMean