Recently i've been using following approach to source code avaiable in an repository on a password secured Bitbucket: https://stackoverflow.com/a/49480595/5068688
This has been working perfectly fine for me, just until now.
I will explain the problem in a short manner: The code i am sourcing, is now longer then 500 lines. Unfortunately, the content of the HTTP-Response only provides me with the first 500 lines. Any lines after are not within the content.
The code i am using:
library(httr)
library(rjson)
url <- "https://link.to/git/and/file.R"
username <- "my_git_username"
token <- "my_git_acess_token"
get_response <- GET(url, authenticate(username, token))
get_content <- content(get_response, as = "parse")
get_content$limit
Last line provides me with value: 500
When printing out get_content
variable, it shows me the first 500 lines followed by:
$start
[1] 0
$size
[1] 500
$isLastPage
[1] FALSE
$limit
[1] 500
$nextPageStart
[1] 500
I assume, the content is somehow limited to 500 lines. However, variable $isLastPage is FALSE which would imply, there is another Page following this one. So it could be that i just have to get to the next page? I couldt find anything about this either.
Thanks for any advice. Please tell me if you need further information.