另一个rJava库安装错误:rJava.rdb'已损坏(Another rJava library install error: rJava.rdb' is corrupt)
本周我有一段时间与java相关的软件包。 我终于得到了我的RWeka工作(见这里 ),但现在我有rJava问题。
该包似乎加载正常,但是当我加载库时,我得到以下内容:
Error in get(method, envir = home) : lazy-load database '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rJava/R/rJava.rdb' is corrupt In addition: Warning messages: 1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], : restarting interrupted promise evaluation 2: In get(method, envir = home) : restarting interrupted promise evaluation 3: In get(method, envir = home) : internal error -3 in R_decompress1 Error: package or namespace load failed for ‘rJava’
任何想法将不胜感激!
I am having a time with java related packages this week. I finally got my RWeka working (see HERE), but now I'm having rJava issues.
The package seems to load up fine, but when I load the library I get the following:
Error in get(method, envir = home) : lazy-load database '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rJava/R/rJava.rdb' is corrupt In addition: Warning messages: 1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], : restarting interrupted promise evaluation 2: In get(method, envir = home) : restarting interrupted promise evaluation 3: In get(method, envir = home) : internal error -3 in R_decompress1 Error: package or namespace load failed for ‘rJava’
Any ideas would be greatly appreciated!
原文:https://stackoverflow.com/questions/43788788
更新时间:2023-10-16 21:10
最满意答案
使用
.match()
和regEx
作为链接到myString
参数。var myString = 'Sent from your Zoom trial account - Your verification code is: 621226'; var regEx = /(\d+)$/g; var result = myString.match(regEx); console.log(result);
Use
.match()
withregEx
as parameter chained tomyString
.var myString = 'Sent from your Zoom trial account - Your verification code is: 621226'; var regEx = /(\d+)$/g; var result = myString.match(regEx); console.log(result);
相关问答
更多-
数字正则表达式验证器(Digits Regular Expression Validator)[2022-06-12]
Regex reg = new Regex("\b[0-9]\-[0-9]{5}\-[0-9]{3}\-[0-9]\b"); Regex reg = new Regex("\b[0-9]\-[0-9]{5}\-[0-9]{3}\-[0-9]\b"); -
试试这个正则表达式: /\d+/ 但是您需要使用preg_match_all来获取所有匹配项: preg_match_all('/\\d+/', $str, $matches) 然后$matches[0]将包含你正在寻找的数组。 Try this regular expression: /\d+/ But you would need to use preg_match_all to get all matches: preg_match_all('/\\d+/', $str, $matches) ...
-
这是@El Yobo的正则表达式的缩写版本。 你可以用\d代替[0-9] ,你可以用-?选择连字符-? 去除连字符串的特殊情况。 ^\d+(-?\d+)*$ http://ideone.com/SRqPW I can't believe it, I got it by giving a guess in regular expression i hope this will work fine. (\d+(\d*\\-\d+)+\d*)|\d+
-
您可以尝试用空字符串替换逗号: gsub(",", "", "2,123.02") #[1] "2123.02" 注意:如果您只需要在数字之间替换逗号,则可以使用外观: gsub("(?<=[0-9]),(?=[0-9])", "", "this, this is my number 2,123.02", perl=TRUE) #[1] "this, this is my number 2123.02" 我用sub而不是gsub编辑,以防你有一个带逗号的多个数字的字符串。 如果你只有一个, sub是“足 ...
-
以下是我将如何做到这一点: \d{2}(?:(?:[.]{2}|-{2}|_{2})\d{2})+ 说明:两个数字,后跟一个或多个出现的两个相同的字符,包括句点,连字符或下划线,后跟两个数字。 如果需要锚定,可以在前面添加^ ,在末尾添加$ 。 我更喜欢使用{2}而不是拼写出来(即重复相同的符号)的原因是它允许您增加数字。 随着数量变大,重复符号数量的计算会变得越来越困难。 此外,根据您的字体和屏幕大小,某些符号可以在视觉上合并为一个较长的符号,这使得难以确定其中有多少符号依次排列。 不良性格就是这方面的 ...
-
使用.match()和regEx作为链接到myString参数。 var myString = 'Sent from your Zoom trial account - Your verification code is: 621226'; var regEx = /(\d+)$/g; var result = myString.match(regEx); console.log(result); plnkr http://plnkr.co/edit/cdwFsPKq9X3tCnub6FzL?p=pr ...
-
您可以使用RegularExpressionValidator ,这里是Validation Expression ValidationExpression="[0-9]*\.?[0-9]*" 最后它会看起来像...
PHP的正则表达式来检查一个数字是否由5位数组成(php regular expression to check whether a number consists of 5 digits)[2024-01-21]
这个正则表达式应该很好地工作: /^\d{5}$/ 这将检查一个字符串是否只包含5个数字。 /是分隔符。 它是正则表达式的开始和结束。 (用户定义的,你可以使用任何字符作为分隔符)。 ^是字符串锚的开始。 \d是[0-9]的简写形式,它是一个仅匹配数字的字符类。 {5}表示重复最后一个组或字符5次。 $是字符串锚点的结尾。 /是结束分隔符。 如果您想确保该数字不以0开头,则可以使用以下变体: /^[1-9]\d{4}$/ 哪里: /是分隔符。 它是正则表达式的开始和结束。 (用户定义的,你可以使用任何字 ...数字的正则表达式(Regular expression for digits)[2023-05-31]
您可以尝试使用可选空格或连字符查找8-12位数字的序列: ^(\d[\s-]?){8,12}$ You can try this which looks for a sequence of 8-12 digits with optional space or hyphen: ^(\d[\s-]?){8,12}$您可以将此正则表达式与多行m标志一起使用: (?相关文章
更多- Hadoop Could not load native gpl library异常解决
- Install Storm on CentOS
- install cluster Hadoop 安装集群版Hadoop
- 解决Eclipse无法打开“Failed to load the JNI shared library”
- eclipse里报:An internal error occurred during:
- 《数据结构与STL》(Data Structures and the Standard Template Library)扫描版[PDF]
- The connection to adb is down, and a severe error has occured.
- solr error logs org.apache.solr.common.SolrException: ERROR: [doc=17] unknown field alias
- Solr安装异常:SolrException: Error loading class 'solr.VelocityResponseWriter'
- error C2668: 'M' : ambiguous call to overloaded function
最新问答
更多- 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
- 如何通过引用返回对象?(How is returning an object by reference possible?)
- 矩阵如何存储在内存中?(How are matrices stored in memory?)
- 每个请求的Java新会话?(Java New Session For Each Request?)
- css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
- 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
- xcode语法颜色编码解释?(xcode syntax color coding explained?)
- 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
- 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
- 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
- 西安哪有PLC可控制编程的培训
- 在Entity Framework中选择基类(Select base class in Entity Framework)
- 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
- 电脑二级VF有什么用
- Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
- 金华英语角.
- 手机软件如何制作
- 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
- 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
- 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
- Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
- 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
- python的访问器方法有哪些
- DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
- 在Ruby中对组合进行排序(Sorting a combination in Ruby)
- 网站开发的流程?
- 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
- 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
- 透明度错误IE11(Transparency bug IE11)
- linux的基本操作命令。。。