Package: autoharp 0.0.10

Vik Gopal

autoharp: Semi-Automatic Grading of R and Rmd Scripts

A customisable set of tools for assessing and grading R or R-markdown scripts from students. It allows for checking correctness of code output, runtime statistics and static code analysis. The latter feature is made possible by representing R expressions using a tree structure.

Authors:Vik Gopal [aut, cre], Samuel Seah [aut], Viknesh Jeya Kumar [aut], Gabriel Ang [aut], Ruofan Liu [ctb], National University of Singapore [cph]

autoharp_0.0.10.tar.gz
autoharp_0.0.10.tar.gz(r-4.5-noble)autoharp_0.0.10.tar.gz(r-4.4-noble)
autoharp_0.0.10.tgz(r-4.4-emscripten)autoharp_0.0.10.tgz(r-4.3-emscripten)
autoharp.pdf |autoharp.html
autoharp/json (API)
NEWS

# Install 'autoharp' in R:
install.packages('autoharp', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/singator/autoharp-docs/issues

1.00 score 1 stars 8 scripts 317 downloads 62 exports 70 dependencies

Last updated 3 years agofrom:d2efbb0a76. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 26 2024
R-4.5-linuxNOTENov 26 2024

Exports:%>%carve_mstcarve_subtreecheck_correctnesscheck_rmdcheck_runtimeclean_dircopy_e2ecount_fn_callcount_fn_in_fncount_lam_fncount_lints_allcount_lints_onecount_self_fndetect_fn_argdetect_fn_call_in_fordetect_for_in_fn_defdetect_growingdetect_nested_forenv_sizeexamplify_to_rextract_actual_argsextract_assigned_objectsextract_chunksextract_fn_callextract_formal_argsextract_non_chunksextract_self_fnfapplyfind_branch_numgenerate_all_subtreesgenerate_thumbnailsget_adj_listget_child_idsget_librariesget_next_subtreeget_node_typesget_parent_call_idget_parent_idget_recursive_indexis_subtree_rooted_atjaccard_treeharpjoin_treeharpsK2keep_brancheslang_2_treelog_summarylum_local_matchpath_to_rootplotpopulate_soln_envprune_depthremove_extensionrender_onereplace_sp_chars_filenamereset_pathrmd_to_forestharprmd_to_token_countrun_tunershowsubtree_atTreeHarp

Dependencies:backportsbase64encbslibcachemcallrclicodetoolscommonmarkcpp11crayoncyclocompdescdigestdplyrevaluatefansifastmapfontawesomefsgenericsgluehighrhtmltoolshttpuvigraphjquerylibjsonliteknitrlaterlatticelazyevallifecyclelintrlobstrmagrittrMatrixmemoisemimepillarpkgconfigprettyunitsprocessxpromisespryrpspurrrR6rappdirsRcppremotesrexrlangrmarkdownsassshinysourcetoolsstringistringrtibbletidyrtidyselecttinytexutf8vctrswithrxfunxml2xmlparsedataxtableyaml

Readme and manuals

Help Manual

Help pageTopics
Convert adjacency list to a matrixadj_list_2_matrix
TreeHarp Cast a TreeHarp to Matrix.as.matrix
autoharp: Semi-Automatic Grading of R and Rmd Scriptsautoharp
Carve a Minimal Spanning Tree Outcarve_mst
Carve out branches to form a new tree.carve_subtree
Check correctness of student solution rmd.check_correctness
Check if a File is Rmdcheck_rmd
Calculate Run-time Statisticscheck_runtime
Removes md Files when no HTML Presentclean_dir
Copy an object from one env to another.copy_e2e
Lint countercount_lints_all
File lint countercount_lints_one
Calculates the Total Memory Usedenv_size
Convert from Examplify to Rexamplify_to_r
Extract chunks that match a pattern.extract_chunks
Extract non-chunks from an Rmd file.extract_non_chunks
Apply a function to a forest of trees.fapply
Find the branch that leads from one node to another.find_branch_num
Forestharp helperscount_fn_call count_fn_in_fn count_lam_fn count_self_fn detect_fn_arg detect_fn_call_in_for detect_for_in_fn_def detect_growing detect_nested_for extract_actual_args extract_assigned_objects extract_fn_call extract_formal_args extract_self_fn forestharp-helpers
Generate all subtrees from a tree.generate_all_subtrees
Generate a html of thumbnailsgenerate_thumbnails
Generic for Getting Adjacency Listget_adj_list get_adj_list,TreeHarp-method
Generic for Getting Child Node Idsget_child_ids get_child_ids,list-method get_child_ids,TreeHarp-method
Get the children node idsget_child_ids2
Obtains the node levels from a tree.get_levels
Extracts the Packages Used in An Rmd File.get_libraries
Get the id and depth of a child node.get_next_depth_id
Generate the next sub-tree.get_next_subtree
Generic for Getting Node Typesget_node_types get_node_types,TreeHarp-method
Get Node Id of Parent Callget_parent_call_id
Generic for Getting Parent Node Id.get_parent_id get_parent_id,list-method get_parent_id,TreeHarp-method
Get the parent node idget_parent_id2
Obtain an index to extract out a sub-callget_recursive_index
Function to extract the summary contentget_summary_output
Checks if a graph is connected.is_connected
Checks if a graph contains any cycles.is_cyclic_r
Checks if a tree is rooted at a node of another tree.is_subtree_rooted_at
Computes Jaccard Indexjaccard_treeharp
Root a list of trees.join_treeharps
Compute tree similarityK2
Keep only branches specified by node numberskeep_branches
Convert language object to tree.lang_2_tree
Generate a dataframe from the log file.log_summary
Match Filenames from LumiNUS.lum_local_match
Convert adjacency matrix to a list.matrix_2_adj_list
Extract a path from node to root.path_to_root
TreeHarp Plotting TreeHarp Objectsplot,TreeHarp-method
Returns solution environment and test code from template.populate_soln_env
Prune a tree up to a specified depth.prune_depth
Update node information.rbind_to_nodes_info
Obtains the Root File Name, without Extension.remove_extension
Run a single Rmd file through autoharp.render_one
Replace Special Characters in File Namereplace_sp_chars_filename
Reset search path of current R sessionreset_path
Convert to TreeHarp objectsrmd_to_forestharp
Count tokens in R/Rmdrmd_to_token_count
Runs the student-facing feedback apprun_tuner
Extract a sub-tree.subtree_at
Function to rearrage nodes in BFSto_BFS
Compute tree similaritytree_sim
An R expression as a tree.length,TreeHarp-method names,TreeHarp-method show,TreeHarp-method TreeHarp TreeHarp,logical-method TreeHarp,missing-method TreeHarp-class
Update adjacency list.update_adj_list