38.5 R 语言
安装 R 语言
# pkg install R# cd /usr/ports/math/R/
# make install clean$ R --version
R version 4.6.0 (2026-04-24) -- "Because it was There"
Copyright (C) 2026 The R Foundation for Statistical Computing
Platform: amd64-portbld-freebsd16.0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.CRAN 镜像与包管理
基本使用示例

RStudio IDE
数据导入与导出
统计建模与图形可视化

常用包推荐
分类
包名/Port
用途
与其他语言的互操作
调用 C/C++ 代码
在 R 中调用 Python 代码
在 Python 中调用 R
命令行批处理模式
故障排除
扩展包编译失败
中文显示乱码
图形设备无法启动

参考资料
最后更新于