https://github.com/cran/fda
Tip revision: 229f7206c9196b18bb88d6ee7c3c775e8b28e5d3 authored by J. O. Ramsay on 01 June 2009, 00:00:00 UTC
version 2.1.3
version 2.1.3
Tip revision: 229f720
add-links.rb
Dir["*/*.[rR]d"].each do |path|
puts path
file = File.new(path, "r")
update = file.read.gsub(/\\seealso\{(.*?)\}/smi) do
"\\seealso{\n" +
$1.gsub("\n","").split(/[\, ]+/).map{|f| "\\code{\\link{#{f}}}"}.join(", \n") +
"\n}"
end
file.close
file = File.new(path, "w")
file.write update
file.close
end