Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access help files for functions #1

Open
mikeyEcology opened this issue Apr 13, 2020 · 0 comments
Open

access help files for functions #1

mikeyEcology opened this issue Apr 13, 2020 · 0 comments

Comments

@mikeyEcology
Copy link

Thank you for creating the rTorch package. This will be a great way to make neural networks accessible to the many scientists who use R but not Python.
I'm wondering if/how I can access help files for functions not listed in the manual provided on cran. The functions in this package are accessed similarly to Python, which is different from how typical R functions work, so I'm having trouble finding out exactly what arguments are available for each function. Here is an example from here.

library(rTorch) # (after setting up conda environment)
N <- 64L; D_in <- 1000L
device = torch$device('cpu')
x <- torch$randn(N, D_in, device=device)

I'm wondering how can I find documentation for the function randn; this would typically done in R via ?torch$randn, but R does not allow this. I could go into python and type help(torch.randn) to access the documentation, but I'm wondering if there is a better way in R.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant