Preface:
People can not fall in the same place two times, the efficiency of life is too low. So I have been keeping track of the habit. Now the nearly half a month to meet the error about the R language to share, and hope to help some friends, but also hope that all the friends have resolved, unresolved errors brought forward to improve each other's knowledge points, thank you!
Directory:
- Connection Database error: Negative length vectors is not allowed
- Connection Database error: First argument is not an open RODBC channel
- Connection Database error: Incorrect number of dimensions
- Rstudio Restart on run: R Session aborted
- Error:argument is not interpretable as logical
- Rstudio cannot debug, the next breakpoint is invalid!
- Encoding error: Invalid multibyte character in Parcer on line 10
(For more information, see: R, Ggplot2, shiny summary)
Text:Connection Database error: Negative length vectors is not allowed
Code:
Error:
Solution:
Links: Http://stackoverflow.com/questions/3407015/querying-oracle-db-from-revolution-r-using-rodbc
Connection Database error: First argument is not an open RODBC channel
Error:
Possible cause: The database is not connected. You can use PL/SQL to execute a statement to see if you can get to the database. If you can't get the data, it could be a network problem, or you're not connected to the database. If you can get the data, check the data source, because R is connected to the database through the data source RODBC.
Connection Database error: Incorrect number of dimensions
Error:
Possible reasons: SQL statements that fetch data from a database may be wrong, output the data that is taken back, and if it is empty, it is probably wrong on top of SQL. For example, when looking up data by time, inserting a time-qualified SQL statement in where is wrong.
rstudio Restart on run: R Session aborted
Error:
Solution: Upgrade the Rcpp package.
error:argument is not interpretable as logical
Error:
Possible reasons: Data processing problems, not the value of NA for special treatment. For example, in a judgment statement to determine whether a value is empty, but if it is NA (missing value) will not be judged.
The workaround is to add one to determine if it is NA before judging the statement, and here is an example:
Rstudio cannot debug, the next breakpoint is invalid!
Possible causes:
1, Rstudio version needs at 0.89.274 or more to support debugging
2, using the shiny package app does not seem to support breakpoint debugging, but I can sometimes, depressed. Here is the official explanation:
Solution: You can add a "browser ()" To the place where you want the breakpoint, and the function is similar to the next breakpoint.
encoding error: Invalid multibyte character in Parcer on line
Error:
Possible reasons: It may be a Chinese encoding error, this is my use of source ("DATAPROCESSING.R") when the error occurs. You can add code to the source.
Example: Source ("DATAPROCESSING.R", encoding = "Utf-8")
Welcome you to share the errors encountered! In addition, individuals feel that the error message can be turned over the wall to search, is generally easier to find.
Copyright NOTICE: Reprint Please indicate the source, thank you!
Various errors in R language and their solutions