小编wah*_*qub的帖子

如何在R studio中显示错误行号

是否可以在R studio中运行代码后看到语法错误或运行时错误行号(也可以突出显示)?

我搜索了选项但找不到.

r syntax-error rstudio

10
推荐指数
1
解决办法
7445
查看次数

如何在Java中交换两位整数?

Java中是否有内置函数可用于交换两位?

例如:

_ _ _ _ 1 _ _ 0位3与位0交换并变为_ _ _ _ 0 _ _ 1

我知道可以使用逐位操作的长程序来完成,但我想避免这样做.

java swap bit-manipulation

7
推荐指数
3
解决办法
6213
查看次数

为什么无法安装RJava

我正在尝试安装,RJava但我不能.以下是我认为可用于排除错误的文件和输出.我检查了类似的问题,但我的错误与发布的其他问题不同

这是错误输出,已删除一些冗余行

install.packages("rJava")
installing *source* package ‘rJava’ ...
package ‘rJava’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking whether Java interpreter works... checking whether JNI programs can be compiled... yes
checking whether JNI programs can be run... yes
checking JNI data types... ok
checking whether Rinterface.h exports R_CStackXXX variables... yes
checking whether Rinterface.h exports R_SignalHandlers... yes
configure: creating …
Run Code Online (Sandbox Code Playgroud)

r rjava rstudio

2
推荐指数
1
解决办法
2305
查看次数

我如何使用perl或grep来提取文件中的所有链接

如何从只有一行的文件中获取所有链接.

例如文件内容:

ABC def WWW.----link_1----.html ARE ABC def WWW.---link_2----.html ABC def WWW.---link_3---.html
Run Code Online (Sandbox Code Playgroud)

到目前为止我有这个命令:

perl -pe 's/.*(WWW.*?.html).*/$1/' file_name  
Run Code Online (Sandbox Code Playgroud)

这只给了我:

WWW.---link_1-----.html
Run Code Online (Sandbox Code Playgroud)

我想要的输出是每个链接在单独的行:

link_1  
link_2  
link_3
Run Code Online (Sandbox Code Playgroud)

perl

1
推荐指数
1
解决办法
87
查看次数

标签 统计

r ×2

rstudio ×2

bit-manipulation ×1

java ×1

perl ×1

rjava ×1

swap ×1

syntax-error ×1