最近喜欢数据挖掘。 (对于我这个年纪来说有点困难,但我仍然喜欢它!) 我不仅在工作期间这样做,而且在家里也这样做。
但是,我想知道是否有办法同步我的工作进度。
问题如下:
我想应该有某种代码或包来做到这一点。 如果有人分享他们在不同计算机之间同步工作进度(尤其是文件和 R 代码)的方法,那就太好了。
我希望这个问题不是太基本而无法提出。
解决此问题的一种通用方法,可以使用以下代码:
library(googlesheets4)
# For read data
data <- gsheet2tbl("https://docs.google.com/spreadsheets/.... rest of the link...")
# For write data
data <- write_sheet(
ss = gs4_get(
"https://docs.google.com/spreadsheets/.... rest of the link..."), # Here you need to copy the link of the sheet where you want to add the data from R
sheet = "write the name of your sheet"
)