简体   繁体   English

R原始到十六进制转换

[英]R raw to Hex conversion

I am trying to take a look at how the rawToHex() function is implemented in PKI package. 我试图看一下如何在PKI包中实现rawToHex()函数。

I tried this: 我尝试了这个:

> library(PKI)
Loading required package: base64enc
> PKI::rawToHex
Error: 'rawToHex' is not an exported object from 'namespace:PKI'
> PKI:::rawToHex
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
object 'rawToHex' not found

I am basically trying to understand how to convert raw data to Hex representation in R. So I wanted to take a look at this. 我基本上是想了解如何将原始数据转换为R中的Hex表示形式。因此,我想对此进行研究。

That error is clear: that function is not available in that package. 该错误很明显:该功能在该软件包中不可用。 The correct spelling is raw2hex 正确的拼写是raw2hex

> PKI::raw2hex
function (what, sep, upper = FALSE) 
.Call(PKI_raw2hex, what, if (missing(sep)) NULL else sep, upper)
<environment: namespace:PKI>

You can't see the source in this way because it is compiled. 您无法以这种方式查看源代码,因为它已编译。

Please read this great answer . 请阅读这个好答案

Besides that, you can download the source code in CRAN . 除此之外,您可以在CRAN中下载源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM