Like explain here, use a .gitattributes file that takes care of fixing CRLF conversion settings that are relevant on Windows. The one in this repo can be used for starters.
with R / RStudio, see : https://github.com/r-hub/rhub with this command
check_for_cran()
or directly with a website : https://builder.r-hub.io/
If you have some error like this
check_for_cran()
Error in curl::curl_fetch_memory(url, handle = handle) :
error setting certificate verify locations:
CAfile: /mingw64/ssl/certs/ca-bundle.crt
CApath: none
You must set your proxy
#by example ....
Sys.setenv(http_proxy="http://IP_PROXY:PORT_PROXY")
Sys.setenv(https_proxy="http://IP_PROXY:PORT_PROXY"
#check your parameter
Sys.getenv("http_proxy")
Sys.getenv("https_proxy")
#For rte
Sys.setenv(http_proxy="http://NNI:Mdp@IP_PROXY:PORT_PROXY")
Sys.setenv(https_proxy="http://NNI:Mdp@IP_PROXY:PORT_PROXY")
Follow Hadley Style : http://adv-r.had.co.nz/Style.html
DON'T Follow Google R'Style, see : http://www.edii.uclm.es/~useR-2013/slides/145.pdf