You start the post by mentioning string, i.e words, which formally are considered
distinct also according to the order of their characters.
Then you put the question
"Given N total objects of k distinct kinds such that for i = 1 to k, ri objects are of the same kind,
what are the total number of combinations of containing R objects?"
and citing the answer in the reference you found, it seems that you are actually
interested in the number of subsets with limited repetition, where the order of the elements
does not matter, e.g. $\{ACAB\}=\{AABC\}$.
I am developing my answer according to the latter assumption.
If the $r_i$ were all equal to $r$, then the solution would given by $N_b(R,r,k)$ where
$$ \bbox[lightyellow] {
N_{\,b} (s,r,m) = \text{No}\text{. of solutions to}\;\left\{ \begin{gathered}
0 \leqslant \text{integer }x_{\,j} \leqslant r \hfill \\
x_{\,1} + x_{\,2} + \cdots + x_{\,m} = s \hfill \\
\end{gathered} \right.
} \tag{1} $$
and
$$ \bbox[lightyellow] {
N_b (s,r,m)\quad \left| {\;0 \leqslant \text{integers }s,m,r} \right.\quad = \sum\limits_{\left( {0\, \leqslant } \right)\,\,k\,\,\left( { \leqslant \,\frac{s}
{r}\, \leqslant \,m} \right)} {\left( { - 1} \right)^k \left( \begin{gathered}
m \hfill \\
k \hfill \\
\end{gathered} \right)\left( \begin{gathered}
s + m - 1 - k\left( {r + 1} \right) \\
s - k\left( {r + 1} \right) \\
\end{gathered} \right)}
} \tag{2} $$
whose z-Tranform is in fact
$$ \bbox[lightyellow] {
F_b (x,r,m) = \sum\limits_{0\,\, \leqslant \,\,s\,\,\left( { \leqslant \,\,r\,m} \right)} {N_b (s,r,m)\;x^{\,s} } = \left( {1 + x + \cdots + x^{\,r} } \right)^m = \left( {\frac{{1 - x^{\,r + 1} }}
{{1 - x}}} \right)^m
} \tag{3} $$
as explained in this other post.
If the $r_i$ assume only two values $r_1$ and $r_2$, and there are $k_1$ and $k_2$
distinct sets in each class, then
$$ \bbox[lightyellow] {
F_b (x,r_{\,1} ,r_{\,2} ,k_{\,1} ,k_{\,2} ) = \left( {1 + x + \cdots + x^{\,r_{\,1} } } \right)^{\,k_{\,1} } \left( {1 + x + \cdots + x^{\,r_{\,2} } } \right)^{\,k_{\,2} }
} $$
and you can get the coefficients by operating the convolution in $s=R$ of the two respective $N_b$'s.
Same scheme if the $r_i$'s can be grouped into a "few" different values.
If instead there are "many" $r_i$'s, and quite scattered in value, then from the computational point
of view you have better and obtain the coefficients from the convolution of the $k$ binary strings
$$ \bbox[lightyellow] {
\left[ {0 \le n \le r_{\,i} } \right]
} $$
where $[P]$ is the Iverson bracket
$$ \bbox[lightyellow] {
\left[ P \right] = \left\{ {\begin{array}{*{20}c}
1 & {P = TRUE} \\
0 & {P = FALSE} \\
\end{array} } \right.
} $$
I am not aware of a closed formula for that.
However, depending on the actual application, on the distribution of the $k$'s and $r$'s values, etc.
the binary strings may be considered as discrete (in the limit $\to$ continuous) sequences,
that is as unit square pulses of duration $r_i$ (or $r_{i}+1$, depending on how the $0$-th term is accounted for).
So they may be considered as the sum of two Heaviside functions, or the integral of two
Delta functions, and be manipulated via Fourier or Laplace transform.
That helps to obtain some asymptotic expansions, and in any case the inverse transform
of the product of the single terms is providing a global formula.
Finally, for large $k$ the problem will approach that of the sum of many casual variables, uniformly
distributed over the interval $[0,r_i]$ and so can be handled with the instruments of Probability Theory.