Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用敏感信息(密码)共享(GitHub)我的代码(R)?_R_Github_Coding Style_Passwords_Gitignore - Fatal编程技术网

如何使用敏感信息(密码)共享(GitHub)我的代码(R)?

如何使用敏感信息(密码)共享(GitHub)我的代码(R)?,r,github,coding-style,passwords,gitignore,R,Github,Coding Style,Passwords,Gitignore,假设您正在使用一个使用访问令牌的包。也许是一个来自美国的 我目前的方法是在.gitignore中的开始处创建一个文件。因此,它被忽略了,我可以毫无顾虑地分享 source("never-commit-password.R") 但是,仍然存在通过.RData上传的危险,因为我把它留在了工作区中 在便利性和安全性之间进行权衡的主要做法是什么?将.RData、.rhistore等添加到.gitignore。或者永远不要保存您的工作区。

假设您正在使用一个使用访问令牌的包。也许是一个来自美国的

我目前的方法是在
.gitignore
中的开始处创建一个文件。因此,它被忽略了,我可以毫无顾虑地分享

source("never-commit-password.R")
但是,仍然存在通过
.RData
上传的危险,因为我把它留在了工作区中


在便利性和安全性之间进行权衡的主要做法是什么?

.RData
.rhistore
等添加到
.gitignore
。或者永远不要保存您的工作区。