I have tried to search for the source code of the interface function ".Call(C_SplineCoef,...)" that is mentioned in splinefun {stats} as follows:
z <- .Call(C_SplineCoef, min(3L, iMeth), x, y)
But could not help myself to explore it.
I have tried to search for the source code of the interface function ".Call(C_SplineCoef,...)" that is mentioned in splinefun {stats} as follows:
z <- .Call(C_SplineCoef, min(3L, iMeth), x, y)
But could not help myself to explore it.
You cannot display the code directly in Rstudio; however, you can use the pryr package to automatically search the correct source file for you on github.
First, look at the source of the R function:
is.unsorted
# function (x, na.rm = FALSE, strictly = FALSE)
# {
# if (length(x) <= 1L)
# return(FALSE)
# if (!na.rm && anyNA(x))
# return(NA)
# if (na.rm && any(ii <- is.na(x)))
# x <- x[!ii]
# .Internal(is.unsorted(x, strictly))
# }
and then use:
pryr::show_c_source(.Internal(is.unsorted(x, strictly)))
to automatically open a browser window to https://github.com/search?q=SEXP%20attribute_hidden%20do_isunsorted+repo:wch/r-source&type=Code